ibmcloud-login

authenticates to IBM Cloud

TLDR

Login interactively
$ ibmcloud login
Login with SSO
$ ibmcloud login --sso
Login with API key
$ ibmcloud login --apikey [API_KEY]
Login to specific region
$ ibmcloud login -r [us-south]
Login with username and password
$ ibmcloud login -u [[email protected]] -p [password]
Login to specific API endpoint
$ ibmcloud login -a [https://cloud.ibm.com]
Login with API key from file
$ ibmcloud login --apikey @[keyfile]

SYNOPSIS

ibmcloud login [options]

DESCRIPTION

ibmcloud login authenticates to IBM Cloud. Supports interactive login, SSO for federated IDs, and API key authentication. After login, use ibmcloud target to set account, region, or resource group context. Environment variables ICAPIKEY, ICAPIENDPOINT, and IC_REGION can be used for automation.

PARAMETERS

-u user

Username (email).
-p password
Password.
--sso
Use single sign-on (federated ID).
--apikey key
API key for authentication.
-a endpoint
API endpoint URL.
-r region
Target region.
-c account
Target account ID.
-o org
Target organization.
-s space
Target space.

SEE ALSO

ibmcloud(1), ibmcloud-target(1), ibmcloud-api(1)