snippetbashTip
ibmcloud target — Set or view the target account, region, or resource group. More information: <https://cloud.ibm.com/
Viewed 0 times
thecommandaccountibmcloud targetclisetviewtarget
Problem
How to use the
ibmcloud target command: Set or view the target account, region, or resource group. More information: <https://cloud.ibm.com/docs/cli?topic=cli-ibmcloud_cli#ibmcloud_target>.Solution
ibmcloud target — Set or view the target account, region, or resource group. More information: <https://cloud.ibm.com/docs/cli?topic=cli-ibmcloud_cli#ibmcloud_target>.View the current target account and region:
ibmcloud targetSet the target account:
ibmcloud target -c {{account_id}}Switch to a specific region:
ibmcloud target -r {{region_name}}Set the target resource group:
ibmcloud target -g {{resource_group_name}}Clear the targeted region:
ibmcloud target --unset-regionClear the targeted resource group:
ibmcloud target --unset-resource-groupCode Snippets
View the current target account and region
ibmcloud targetSet the target account
ibmcloud target -c {{account_id}}Switch to a specific region
ibmcloud target -r {{region_name}}Set the target resource group
ibmcloud target -g {{resource_group_name}}Clear the targeted region
ibmcloud target --unset-regionContext
tldr-pages: common/ibmcloud target
Revisions (0)
No revisions yet.