gcloud components

NAME
gcloud components - list, install, update, or remove Google Cloud CLI components
SYNOPSIS
gcloud components GROUP | COMMAND [GCLOUD_WIDE_FLAG]
DESCRIPTION
The gcloud components command group lets you control which tools are installed in the Google Cloud CLI. It can be used to install, update and remove components of the Google Cloud CLI, ensuring a lean, up-to-date installation.

gcloud components regularly checks whether updates are available for the tools you already have installed, and gives you the opportunity to upgrade to the latest version.

Certain components have dependencies. gcloud components will install any dependencies, and during removal, any dependant components will be uninstalled automatically.

EXAMPLES
To see all available components:
gcloudcomponentslist 

To install a component you don't have:

gcloudcomponentsinstallCOMPONENT

To remove a component you no longer need:

gcloudcomponentsremoveCOMPONENT

To update all components you have to their latest version:

gcloudcomponentsupdate 

To update all installed components to version 1.2.3:

gcloudcomponentsupdate --version1.2.3
GCLOUD WIDE FLAGS
These flags are available to all commands: --help .

Run $ gcloud help for details.

GROUPS
GROUP is one of the following:
repositories
Manage additional component repositories for Trusted Tester programs.
COMMANDS
COMMAND is one of the following:
install
Install one or more Google Cloud CLI components.
list
List the status of all Google Cloud CLI components.
reinstall
Reinstall the Google Cloud CLI with the same components you have now.
remove
Remove one or more installed components.
update
Update all of your installed components to the latest version.

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

Last updated 2026年05月27日 UTC.