How to install Cloud Foundry CLI

0
638

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.

Prerequisite

You need have SAP Cloud Platform Cloud Foundry account, get you FREE 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.

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

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

4. Now we have successfully installed the Cloud foundry CLI. Lets test/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.

7. Lets login to our Cloud Foundry using command:

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

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

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

Conclusion

Congrats!! you have successfully learners steps to install Cloud foundry CLI. Stay tuned for next blog post to develop applications on SAP Cloud Platform 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! 🙏

mail

SAPLearners.com is now on Telegram. Click here to join our channel and stay updated with the latest tutorials and updates.

Like us on Facebook and follow us on Twitter.