LinuxCommandLibrary

ibmcloud-target

sets or displays the targeted account, region, resource group, and Cloud

TLDR

Show current target

$ ibmcloud target
copy
Set target region
$ ibmcloud target -r [us-south]
copy
Set target resource group
$ ibmcloud target -g [resource-group]
copy
Set Cloud Foundry org and space
$ ibmcloud target -o [org] -s [space]
copy
Set target account
$ ibmcloud target -c [account-id]
copy
Unset resource group
$ ibmcloud target --unset-resource-group
copy

SYNOPSIS

ibmcloud target [options]

DESCRIPTION

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.

PARAMETERS

-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.
--unset-resource-group
Clear resource group.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community