gcloud components Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud components - list, install, update, or remove Google Cloud CLI components
- SYNOPSIS
gcloud componentsGROUP|COMMAND[GCLOUD_WIDE_FLAG …]
- DESCRIPTION
- The gcloud components command group lets you control which tools are installedin the Google Cloud CLI. It can be used to install, update and remove componentsof the Google Cloud CLI, ensuring a lean, up-to-date installation.
gcloud components regularly checks whether updates are available for the toolsyou already have installed, and gives you the opportunity to upgrade to thelatest version.
Certain components have dependencies. gcloud components will install anydependencies, and during removal, any dependant components will be uninstalledautomatically.
- EXAMPLES
- To see all available components:
gcloudcomponentslistTo install a component you don't have:
gcloudcomponentsinstallCOMPONENTTo remove a component you no longer need:
gcloudcomponentsremoveCOMPONENTTo update all components you have to their latest version:
gcloudcomponentsupdateTo 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 helpfor details. - GROUPS
is one of the following:GROUPrepositories- Manage additional component repositories for Trusted Tester programs.
- COMMANDS
is one of the following:COMMANDinstall- 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 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.