gcloud components install - install one or more Google Cloud CLI components
gcloud components install COMPONENT-IDS [COMPONENT-IDS ...] [GCLOUD_WIDE_FLAG ...]
Ensure that each of the specified components (as well as any dependent components) is installed on the local workstation. Components are installed without performing any upgrades to your existing CLI installation. All components are installed at the current version of your CLI.
Components that are available for installation can be viewed by running:
$ gcloud components list
Installing a given component will also install all components on which it depends. The command lists all components it is about to install, and asks for confirmation before proceeding.
gcloud components install installs components from the version of the Google Cloud CLI you currently have installed. You can see your current version by running:
$ gcloud version
If you want to update your Google Cloud CLI installation to the latest available version, use:
$ gcloud components update
The following command installs COMPONENT-1, COMPONENT-2, and all components that they depend on:
$ gcloud components install COMPONENT-1 COMPONENT-2
- COMPONENT-IDS [COMPONENT-IDS ...]
The IDs of the components to be installed.
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.