How to install Cloud Foundry CLI

0
3455

Dear SAPLearners, in this blog post we will learn how to install Cloud Foundry CLI (Command Line Interface).

Why Cloud Foundry CLI?

Cloud Foundry CLI is the official command line client for Cloud Foundry. It is used to interact with SAP Cloud Foundry through a terminal from your local machine.

Prerequisites Check

To access SAP BTP Cloud Foundry, you’ll need a SAP BTP Trial account. You can obtain your SAP BTP Trial account here.

Download and Install

Download the latest Command Line Interface (CLI) from the Cloud Foundry web site. Use the following URL:https://github.com/cloudfoundry/cli#downloads.

1. Choose the installer based on the OS. I am using windows machine so i have chosen windows installer.

Download and Install Cloud Foundry CLI Step1

2. A zip file will gets downloaded, extract the zip file and execute the cf_installer.exe file.

Download and Install Cloud Foundry CLI Step2

3. It will start the installation wizard follow the steps like below

Download and Install Cloud Foundry CLI Step3
Download and Install Cloud Foundry CLI Step4
Download and Install Cloud Foundry CLI Step5

4. Now we have successfully installed the Cloud foundry CLI. Lets test to confirm the installation.

5. Open the command line interface or terminal on your local machine. Type “cf”

cf

6. You should see all available commands, if so then the installation is successfully.

Download and Install Cloud Foundry CLI Step6

7. Lets login to our SAP BTP Cloud Foundry using command:

cf login -a https://api.cf.us10.hana.ondemand.com

You can get the API endpoint from SAP BTP Cloud Foundry cockpit.

8. Provide email and password of SAP BTP account and then you will successfully logged with CLI.

Conclusion

Congrats!! you have successfully learned the steps to install Cloud foundry CLI. Stay tuned for next blog post to develop applications on SAP BTP Cloud Foundry using CLI.

Please feel free to comment and let us know your feedback. Subscribe for more updates. If you liked it ❤️, please share it! Thanks! 🙏