Use the Cloud Foundry CLI to execute commands directly against a Cloud Foundry instance.

Getting Started

Before starting follow these steps:

1. Download and install the CLI - see here

2. Set the api endpoint

cf api {{context.apiEndpoint || '[Cloud Foundry API endpoint]'}}

3. Login

$ cf login API endpoint: {{context.apiEndpoint || '[Cloud Foundry API endpoint]'}} Email> {{context.username || '[username]'}} Password> [password] Authenticating... OK

4. Target an org and space

cf target -o "{{context.orgName || '[organization name]'}}" -s "{{context.spaceName || '[space name]'}}"