- 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:
gcloud components list
To install a component you don't have:
gcloud components install COMPONENT
To remove a component you no longer need:
gcloud components remove COMPONENT
To update all components you have to their latest version:
gcloud components update
To update all installed components to version 1.2.3:
gcloud components update --version 1.2.3
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--help
.Run
$ gcloud help
for details. - GROUPS
-
is one of the following:GROUP
repositories
- Manage additional component repositories for Trusted Tester programs.
- COMMANDS
-
is one of the following:COMMAND
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.
restore
-
(DEPRECATED)
Restore the Google Cloud CLI installation to its previous state. 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 2024-02-06 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"lastModified": "Last updated 2024-02-06 UTC.",
"confidential": False
}