Switch clouds
Management console
CLI
-
Click on the name of the current folder in the upper-right corner.
-
Choose the cloud or folder you want to switch to.
There are two ways to choose the cloud that is used in the CLI by default:
- Select a cloud when creating a profile.
- Change the
cloud-id
parameter in the profile configuration.
To change the cloud-id
parameter for the current profile:
-
See the description of the command to change configuration parameters:
$ yc config set --help
-
Find out the ID of the cloud you want to use. To do this, get a list of available clouds:
$ yc resource-manager cloud list +----------------------+----------------------+-------------------------------+ | ID | NAME | DESCRIPTION | +----------------------+----------------------+-------------------------------+ | b1gg8sgd16g7qch5onqs | cloud-b1gg8sgd1g23qc | ... | | b1gjqgj3hhvjen5iqakp | cloud-b1gjqgj3hhvjen | ... | +----------------------+----------------------+-------------------------------+
-
Specify the ID of the cloud to be used by default:
$ yc config set cloud-id b1gjqgj3hhvjen5iqakp