+

Search Tips  |   Advanced Search


IBM Cloud CLI

In this tutorial, you install the IBM Cloud Command Line Interface, along with popular plug-ins and tools so that you can work with apps, toolchains, pipelines, Kubernetes clusters, and more in IBM Cloud.

The installation command in this tutorial installs the latest stand-alone IBM Cloud CLI version available, plus the following tools:

Want to instantly start working with the IBM Cloud CLI? Try out IBM Cloud Shell, which gives you a personal cloud-based shell workspace with the full IBM Cloud CLI and tons of command-line tools - no installation needed. To get started, click the Cloud Shell icon in the IBM Cloud console menu bar. See Getting started with IBM Cloud Shell.


Before you begin

If you need to use a 32-bit version of the CLI, or a previous version other than the latest for IBM Cloud Dedicated environments, see IBM Cloud CLI releases.


Step 1. Run the installation command

The latest version of the IBM Cloud CLI is installed when you run the command. As the CLI and plug-ins install, keep an eye on the command line to authenticate as needed.


Step 2. Verify the installation

To verify that the CLI and Developer Tools were installed successfully, run the help command:

ibmcloud dev help

The output lists the usage instructions, the current version, and the supported commands.


Step 3. Configure your environment

  1. Log in to IBM Cloud with your IBMid. If you've multiple accounts, you are prompted to select which account to use. If you do not specify a region with the -r flag, you must also select a region.

    ibmcloud login

    If your credentials are rejected, you might be using a federated ID. To log in with a federated ID, use the --sso flag. See Logging in with a federated ID for more details.

  2. If you plan to access Cloud Foundry services, specify a Cloud Foundry org and space. We can run the following command to interactively identify the org and space:

    ibmcloud target --cf

    Or, if you know which org and space that the service belongs to, you can use the following command:

    ibmcloud target -o <value> -s <value>


Next steps

You're now ready to develop and deploy your first app. See Creating and deploying apps by using the CLI.

Stay up to date with the IBM Cloud CLI by subscribing to the IBM Cloud CLI releases repository. You'll receive notifications about new IBM Cloud CLI releases.

IBM Cloud CLI supports a plug-in framework to extend its capability. Discover and install new CLI plugins!

Need a hand with remembering IBM Cloud CLI commands? Print the IBM Cloud CLI quick reference to keep commands for common tasks at your fingertips.