Cloud Foundry CLI

Cloud Foundry CLI download link: https://github.com/cloudfoundry/cli#downloadsarrow-up-right

To create an SAP HANA Cloud database using the Cloud Foundry CLI, execute the following steps:

  1. Open a Linux Terminal or Windows PowerShell.

  2. Log in to the SAP BTP using the command

cf login -o <organisation> -s <space> -a <API endpoint>

and enter your credentials.

-o : The organization to connect to. 
-s : The space to connect to. 
-a : The API endpoint to use.
  1. To create a new database service, execute the command:

Now, you can use the below cf command to create a HANA Cloud Instance:

cf create-service <service offering> <service plan> <service name> -c 
'{"data":
    {
      "memory": <xx>, 
      "systempassword":"<password>"
    }
 }’
  1. Scale HANA Cloud:

  1. Start/Stop HANA Cloud:

circle-info

How to find the Organization and Space IDs

More CLI Commands for HANA Cloud:

Last updated