Do you want to try Cloud Foundry but don’t know where to begin? This tutorial provides a brief introduction to deploying and managing applications on the Cloud Foundry platform.
- Deploy an application to Cloud Foundry
- Provision a database and make it available to your app
- Scale the application
- Observe some of the resiliency of Cloud Foundry by killing an app instance
We have have provisioned an environment for you to complete this tutorial. You have 30 minutes from now to complete this tutorial after which time the Cloud Foundry environment and account will be destroyed. If you try to do something with Cloud Foundry after 30 minutes, you will see an error like
The token expired, was revoked, or the token ID is incorrect. Please log back in to re-authenticate. You can restart the tutorial after 30 minutes to receive a new environment.
Provisioning can take up to a minute to complete. Please be sure you see a message in the terminal telling you to proceed before attempting the tutorial.
This content scenario is currently in beta. If you have an issue with provisioning or any part of the exercise, please restart the scenario. We are working to improve the experience.
Try Cloud Foundry on Kubernetes
The Command Line Interface
The CLI, or Command Line Interface, is the tool you will use to interact with Cloud Foundry. The CLI runs in a terminal window and makes REST calls to the Cloud Foundry API. The CLI has been preinstalled in the terminal window.
You can verify this by checking the version:
The CLI is a self-documenting tool. For example, you can run:
cf helpto see a list of the most commonly used commands
cf help -ato see a list of all the available commands
cf <command> --helpto see details on using a specific command
Note: We have already created a user account and space to complete this tutorial in an existing Cloud Foundry instance.
When using a Cloud Foundry instance, you first need to login. We have already logged you into the Cloud Foundry instance using the user account generated for you. You can see the details of this instance by running:
Now that you are logged in, you are ready to deploy an application.