LinuxCommandLibrary

ibmcloud-login

authenticates to IBM Cloud

TLDR

Login interactively

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

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community