Skip to content

Latest commit

 

History

History
69 lines (40 loc) · 3.02 KB

log-on-to-the-cloud-foundry-environment-using-the-cloud-foundry-command-line-interface-7a37d66.md

File metadata and controls

69 lines (40 loc) · 3.02 KB

Log On to the Cloud Foundry Environment Using the Cloud Foundry Command Line Interface

Use the Cloud Foundry Command Line Interface (cf CLI) to log on to the Cloud Foundry space.

  • The Cloud Foundry environment is enabled. You can enable it in the Cloud Platform Cockpit. For more information, see Create a Subaccount.

  • (Enterprise accounts only) You have created at least one subaccount and enabled the Cloud Foundry environment in this subaccount. For more information, see Create a Subaccount.

    Note:

    In a Cloud Foundry trial account, the Cloud Foundry environment has been activated for you automatically and a first space "dev" has been created for you.

  • Download and install the cf CLI and log on to Cloud Foundry. For more information, see Download and Install the Cloud Foundry Command Line Interface.

  1. Open a command line.

  2. Set the target API endpoint to the cloud controller.

    Note:

    There is no specific endpoint for trial accounts. Both enterprise and trial accounts use the same API endpoints.

    cf api https://api.cf.eu10.hana.ondemand.com
    

    For more information, see Regions and API Endpoints Available for the Cloud Foundry Environment.

  3. Log on to the Cloud Foundry environment:

    cf login
    

    Note:

    • To log on with SAP Universal ID, use the option --sso. You need a browser in the logon process.

      For more information, see Log On Manually With a Custom Identity Provider.

      Otherwise log on with the password associated with your account (S-user or P-user) in the default identity provider, SAP ID service.

      If you've forgotten this password and this user is associated with your SAP Universal ID user, reset your password.

      For more information, see SAP Note 3085908.

    • To log on with a specific identity provider, use the option --origin.

      For more information, see Log On as a Technical User With a Custom Identity Provider.

  4. When prompted, enter your user credentials (email and password).

  5. To view the help for the CLI, execute cf help, which lists the most common CLI commands with a short description, or cf help -a, which lists all commands. To get help for a specific command, execute cf help <command>.