Linux command
ibmcloud 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Log in interactively
ibmcloud login
Log in with single sign-on
ibmcloud login --sso
Log in non-interactively
ibmcloud login --apikey [API_KEY]
Set the target region and resource group
ibmcloud target -r [us-south] -g [default]
List resource instances
ibmcloud resource service-instances
Show account information
ibmcloud account show
Install a plugin
ibmcloud plugin install [plugin-name]
List installed plugins
ibmcloud plugin list
说明
ibmcloud is the official command-line interface for IBM Cloud. It wraps IBM Cloud's REST APIs for account, IAM, and resource management, and exposes service-specific functionality through installable plugins. Most workflows begin with `ibmcloud login` followed by `ibmcloud target` to select the region and resource group. From there, `resource`, `iam`, and plugin commands create and manage services, clusters, and functions. Plugins such as `kubernetes-service`, `code-engine`, `container-registry`, and `cloud-databases` add service-specific subcommands.
参数
- login --sso --apikey _KEY_ -r _REGION_ -g _GROUP_ -c _ACCOUNT_ID_
- Authenticate against IBM Cloud. `--sso` uses single sign-on, `--apikey` uses a platform API key.
- logout
- End the current session.
- target -r _REGION_ -g _GROUP_ -o _ORG_ -s _SPACE_
- Set or show the current target region, resource group, Cloud Foundry org, or space.
- account _subcommand_
- Manage accounts (e.g. `account show`, `account users`, `account list`).
- resource _subcommand_
- Manage resource groups and service instances (e.g. `resource groups`, `resource service-instances`, `resource service-instance-create`).
- plugin _subcommand_
- Manage plugins: `install`, `uninstall`, `list`, `update`, `repo-plugins`.
- cf _subcommand_
- Cloud Foundry commands (requires the `cloud-foundry` plugin).
- iam _subcommand_
- Manage users, service IDs, API keys, and access policies.
- config --http-timeout _N_ --color _on|off_ --locale _LOCALE_ --check-version _true|false_
- Configure CLI behavior (HTTP timeout, output color, locale, version check).
- --help, -h
- Display help.
- --version
- Print the CLI version.
FAQ
What is the ibmcloud command used for?
ibmcloud is the official command-line interface for IBM Cloud. It wraps IBM Cloud's REST APIs for account, IAM, and resource management, and exposes service-specific functionality through installable plugins. Most workflows begin with `ibmcloud login` followed by `ibmcloud target` to select the region and resource group. From there, `resource`, `iam`, and plugin commands create and manage services, clusters, and functions. Plugins such as `kubernetes-service`, `code-engine`, `container-registry`, and `cloud-databases` add service-specific subcommands.
How do I run a basic ibmcloud example?
Run `ibmcloud login` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does login --sso --apikey _KEY_ -r _REGION_ -g _GROUP_ -c _ACCOUNT_ID_ do in ibmcloud?
Authenticate against IBM Cloud. `--sso` uses single sign-on, `--apikey` uses a platform API key.