note
Prerequisite: Google Cloud SDK should be installed. See the docs here.
gcloud
project configurations are typically stored in the following folder in files with prefix config_
. For example: config_my-project-name
To add a new project configuration, run the gcloud init
command and follow the instructions.
|
|
After successfully selecting the desired project and options, a new config file will appear in the configurations folder. To switch the active configuration for a new project use the following command:
|
|
Set the currently active project:
Get the currently active project: