gcloud components install

NAME
gcloud components install - install one or more Google Cloud CLI components
SYNOPSIS
gcloud components installCOMPONENT-IDS[COMPONENT-IDS …][GCLOUD_WIDE_FLAG]
DESCRIPTION
Ensure that each of the specified components (as well as any dependentcomponents) is installed on the local workstation. Components are installedwithout performing any upgrades to your existing CLI installation. Allcomponents are installed at the current version of your CLI.

Components that are available for installation can be viewed by running:

gcloudcomponentslist

Installing a given component will also install all components on which itdepends. The command lists all components it is about to install, and asks forconfirmation before proceeding.

gcloud components install installscomponents from the version of the Google Cloud CLI you currently haveinstalled. You can see your current version by running:

gcloudversion

If you want to update your Google Cloud CLI installation to the latest availableversion, use:

gcloudcomponentsupdate
EXAMPLES
The following command installsCOMPONENT-1,COMPONENT-2, and all components that theydepend on:
gcloudcomponentsinstallCOMPONENT-1COMPONENT-2
POSITIONAL ARGUMENTS
COMPONENT-IDS [COMPONENT-IDS …]
The IDs of the components to be installed.
GCLOUD WIDE FLAGS
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.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.