Linux command
ibmcloud-target 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Show current target
ibmcloud target
Set target region
ibmcloud target -r [us-south]
Set target resource group
ibmcloud target -g [resource-group]
Set Cloud Foundry org and space
ibmcloud target -o [org] -s [space]
Set target account
ibmcloud target -c [account-id]
Unset resource group
ibmcloud target --unset-resource-group
说明
ibmcloud target sets or displays the targeted account, region, resource group, and Cloud Foundry org/space. Subsequent CLI commands operate within the targeted context. Run without options to display current target.
参数
- -r _region_
- Target region.
- -g _group_
- Target resource group.
- -c _account_
- Target account ID.
- -o _org_
- Target Cloud Foundry organization.
- -s _space_
- Target Cloud Foundry space.
- --cf
- Target a Cloud Foundry environment and auto-select org/space.
- --cf-api _URL_
- Target a specific Cloud Foundry API endpoint.
- --unset-resource-group
- Clear the targeted resource group.
- --output _FORMAT_
- Output format (e.g. `json`).
FAQ
What is the ibmcloud-target command used for?
ibmcloud target sets or displays the targeted account, region, resource group, and Cloud Foundry org/space. Subsequent CLI commands operate within the targeted context. Run without options to display current target.
How do I run a basic ibmcloud-target example?
Run `ibmcloud target` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -r _region_ do in ibmcloud-target?
Target region.