LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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.
--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`).

SEE ALSO

Copied to clipboard
Kai