Switch clouds
Written by
Updated at January 26, 2024
Management console
CLI
API
-
In the management console
, select the appropriate cloud or folder in the list on the left.
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 | +----------------------+----------------------+-------------------------------+ | b1gg8sgd16g7******** | cloud-b1gg8s******** | ... | | b1gjqgj3hhvj******** | cloud-b1gjqg******** | ... | +----------------------+----------------------+-------------------------------+
-
Specify the ID of the cloud to be used by default:
yc config set cloud-id b1gjqgj3hhvj********
Currently, you cannot switch to another cloud using the API.