Linux command
ibmcloud-login 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
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 [user@example.com] -p [password]
Login to specific API endpoint
ibmcloud login -a [https://cloud.ibm.com]
Login with API key from file
ibmcloud login --apikey @[keyfile]
说明
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 IC_API_KEY, IC_API_ENDPOINT, and IC_REGION can be used for automation.
参数
- -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.
FAQ
What is the ibmcloud-login command used for?
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 IC_API_KEY, IC_API_ENDPOINT, and IC_REGION can be used for automation.
How do I run a basic ibmcloud-login example?
Run `ibmcloud login` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -u _user_ do in ibmcloud-login?
Username (email).