snippetbashTip
gcloud config set — Set a property in the Google Cloud CLI configuration. Properties control various aspects of Google C
Viewed 0 times
thecommandcloudgcloud config setclipropertygoogleset
Problem
How to use the
gcloud config set command: Set a property in the Google Cloud CLI configuration. Properties control various aspects of Google Cloud CLI behavior. More information: <https://docs.cloud.google.com/sdk/gcloud/reference/config/set>.Solution
gcloud config set — Set a property in the Google Cloud CLI configuration. Properties control various aspects of Google Cloud CLI behavior. More information: <https://docs.cloud.google.com/sdk/gcloud/reference/config/set>.Set the project property in the core section:
gcloud config set project {{project_id}}Set the compute zone for future operations:
gcloud config set compute/zone {{zone_name}}Disable prompting to make gcloud suitable for scripting:
gcloud config set disable_prompts trueView the list of properties currently in use:
gcloud config listUnset a previously set property:
gcloud config unset {{property_name}}Create a new configuration profile:
gcloud config configurations create {{configuration_name}}Switch between different configuration profiles:
gcloud config configurations activate {{configuration_name}}Code Snippets
Set the project property in the core section
gcloud config set project {{project_id}}Set the compute zone for future operations
gcloud config set compute/zone {{zone_name}}Disable prompting to make gcloud suitable for scripting
gcloud config set disable_prompts trueView the list of properties currently in use
gcloud config listUnset a previously set property
gcloud config unset {{property_name}}Context
tldr-pages: common/gcloud config set
Revisions (0)
No revisions yet.