Creating your IBM Cloud API key

After you installed the IBM Cloud® CLI in your system, you need to login in your IBM Cloud account to use the IBM® CLI. To do that you need to have a valid IBM Cloud API Key.

Procedure

  1. Login in your IBM Cloud account.
  2. In the Manage menu, select Access (IAM).
  3. In the API keys menu, click Create button.
  4. In the Create IBM Cloud API key page, enter a name and description for your API Key.
  5. In the Leaked key section, select either to disable, delete, or not take any action if a key is discovered.
  6. In the Select creation section, choose whether the API key should create a session in the CLI or not.

Results

The IBM Cloud API key is created, write it down to use anytime you need to login to your IBM Cloud account by using command line.

What to do next

To connect to your IBM Cloud account by using IBM Cloud CLI run:

ibmcloud login --apikey $your_ibmcloud_api_key -q --no-region

Where $your_ibmcloud_api_key is the API key that you have created in this task.