LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gcloud-components

Google Cloud SDK component manager

TLDR

List available components
$ gcloud components list
copy
Install component
$ gcloud components install [kubectl]
copy
Update all components
$ gcloud components update
copy
Remove component
$ gcloud components remove [component-id]
copy
Install multiple components
$ gcloud components install [kubectl] [gke-gcloud-auth-plugin]
copy

SYNOPSIS

gcloud components command [options]

DESCRIPTION

gcloud components manages the modular component system of the Google Cloud SDK. The SDK follows a core-plus-components architecture where a minimal base installation can be extended with additional tools as needed.Common optional components include kubectl for Kubernetes management, gsutil for Cloud Storage operations, bq for BigQuery interactions, and language-specific App Engine runtimes. This modular approach keeps the initial SDK installation small while allowing expansion for specific workflows.The update command keeps all installed components current with the latest features and bug fixes. Component management is tracked locally, allowing different machines to have different component sets based on their specific use cases. Some components have dependencies on others, which the system handles automatically during installation.

PARAMETERS

COMMAND

Operation: list, install, update, remove, reinstall, repositories, copy-bundled-python.
list
Show available and installed components, their size, and current version.
install COMPONENT...
Install one or more components (and their dependencies).
update
Update all installed components to the latest available version. Use --version to pin a specific SDK version.
remove COMPONENT...
Uninstall one or more components.
reinstall
Reinstall the SDK, removing and restoring all components at the latest version.
repositories
Manage additional component repositories (add, list, remove) used for trusted-tester releases.
copy-bundled-python
Copy the bundled Python interpreter to a user-specified location.
--quiet, -q
Disable interactive prompts.
--help
Display help information.

CAVEATS

Updates may change behavior. Some components have dependencies. Admin rights may be needed.

SEE ALSO

Copied to clipboard
Kai