LinuxCommandLibrary

ibmcloud-login

Log in to the IBM Cloud.

TLDR

Log in by using an interactive prompt

$ ibmcloud login
copy


Log in to a specific API endpoint (default is cloud.ibm.com)
$ ibmcloud login -a [api_endpoint]
copy


Log in by providing username, password and the targeted region as parameters
$ ibmcloud login -u [username] -p [password] -r [us-south]
copy


Log in with an API key, passing it as an argument
$ ibmcloud login --apikey [api_key_string]
copy


Log in with an API key, passing it as a file
$ ibmcloud login --apikey @[path/to/api_key_file]
copy


Log in with a federated ID (single sign-on)
$ ibmcloud login --sso
copy

Copied to clipboard