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
- Login in your IBM Cloud account.
- Go to Manage menu and select Access (IAM).
- Go to API keys menu, click Create an IBM Cloud API key.
- Enter a name and description for your API Key and click Create.
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.