gcloud components - list, install, update, or remove Google Cloud SDK components
gcloud components GROUP | COMMAND [GLOBAL-FLAG ...]
List, install, update, or remove Google Cloud SDK components.
Because you might need only some of the tools in the Cloud SDK to do your work, you can control which tools are installed on your workstation. You can install new tools on your workstation when you find that you need them, and remove tools that you no longer need. The gcloud command 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 depend on other components. When you install a component that you need, all components upon which it directly or indirectly depends, and that are not already present on your workstation, are installed automatically. When you remove a component, all components that depend on the removed component are also removed.
Run $ gcloud help for a description of flags available to all commands.
GROUP is one of the following:
repositoriesManage additional component repositories for Trusted Tester programs.
COMMAND is one of the following:
installInstall one or more Cloud SDK components.list
List the status of all Cloud SDK components.reinstall
Reinstall the Cloud SDK with the same components you have now.remove
Remove one or more installed components.restore
Restore the Cloud SDK installation to its previous state.update
Update all of your installed components to the latest version.
To see all available components:
$ gcloud components list
To install a component you dont 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