From 511ed7af54b50f9b5d24af235c0c5bbe19fff144 Mon Sep 17 00:00:00 2001 From: danielsagie <137056545+danielsagie@users.noreply.github.com> Date: Thu, 7 Dec 2023 11:45:04 +0200 Subject: [PATCH] gcloud-{components-install, config-set}: add pages (#11679) --- pages/common/gcloud-components-install.md | 25 +++++++++++++++++ pages/common/gcloud-config-set.md | 33 +++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 pages/common/gcloud-components-install.md create mode 100644 pages/common/gcloud-config-set.md diff --git a/pages/common/gcloud-components-install.md b/pages/common/gcloud-components-install.md new file mode 100644 index 000000000..d865adc78 --- /dev/null +++ b/pages/common/gcloud-components-install.md @@ -0,0 +1,25 @@ +# gcloud components install + +> Install specific components of the Google Cloud CLI, along with their dependencies. +> Installs components at the current version of the Google Cloud CLI without upgrading the existing installation. +> More information: . + +- View available components for installation: + +`gcloud components list` + +- Install a specific component (installs any dependencies as well): + +`gcloud components install {{component_id}}` + +- Install multiple specific components: + +`gcloud components install {{component_id1}} {{component_id2}}` + +- Check the current version of Google Cloud CLI: + +`gcloud version` + +- Update Google Cloud CLI to the latest version: + +`gcloud components update` diff --git a/pages/common/gcloud-config-set.md b/pages/common/gcloud-config-set.md new file mode 100644 index 000000000..d5c7161b7 --- /dev/null +++ b/pages/common/gcloud-config-set.md @@ -0,0 +1,33 @@ +# gcloud config set + +> Set a property in the Google Cloud CLI configuration. +> Properties control various aspects of Google Cloud CLI behavior. +> More information: . + +- 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 true` + +- View the list of properties currently in use: + +`gcloud config list` + +- Unset 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}}`