Managing gcloud CLI components

Components are the installable parts of the Google Cloud CLI. A componentcan be a command-line tool (gcloud,bq, andgsutil), a set ofgcloud CLI commands at the Alpha or Betarelease levels, or a packagethat contains dependencies used by a tool in the gcloud CLI.

The most commonly-used components are installed by default. If you run agcloud alpha orgcloud beta command interactively and thealpha orbetacomponent is not installed, the gcloud CLI asks you whether youwant to install it. An affirmative response installs the component and then runsthe command. Other components are installed on-demand by thegcloud CLI when you run commands that require them.

Try it for yourself

If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.

Get started for free

Default components

When you install the gcloud CLI, the following components areinstalled by default:

IDNameDescription
gcloudDefault gcloud CLI commandsTool for interacting with Google Cloud. Only commands at the General Availability and Preview release levels are installed with this component. You must separately install thegcloud alpha Commands and/orgcloud beta Commands components if you want to use commands at other release levels.
bqBigQuery command-line toolTool for working with data in BigQuery
gsutilLegacy tool for performing Cloud Storage tasks. Usegcloud storage commands instead.
coregcloud CLI core librariesLibraries used internally by the gcloud CLI tools.

Alpha and beta components

The gcloud CLI provides two components that containgcloud CLI alpha and beta commands. These components aren'tinstalled by default, but you can install them manually at any time after theinitial gcloud CLI installation. These components are:

IDNameDescription
alphagcloud CLI alpha commandsgcloud CLI commands at the alpha release level.
betagcloud CLI beta commandsgcloud CLI commands at the beta release level.

gcloud CLI commands at the General Availability release level arepart of the gcloud CLI component and are installed automaticallywhen you install the gcloud CLI.

A list of all availableadditional components andexternal package managers, which aren't installedby default, appears below.

Managing gcloud CLI components

You can list, install, update, and remove gcloud CLI components tosuit your needs.

Note: These instructions won't work if you have installedgcloud CLI using a package manager such as APT oryum becausegcloud CLI component manager is disabled when using that method ofinstallation. Use thesepackages instead.Caution: When modifying your installation, the current directory of yourterminal must be outside thegoogle-cloud-cli directory of thegcloud CLI installation. On Windows, you will need to open yourterminal as an Administrator if you have performed anAll Users installation.

Listing components

To see a list of components that are available and currently installed,rungcloud components list:

gcloud components list

The following sample isn't a complete listing of all available components. Toview the latest component offerings, update your gcloud CLIinstallation and then rungcloud components list.

StatusComponent NameIDSize
InstalledApp Engine Go Extensionsapp-engine-go97.7 MiB
InstalledCloud Bigtable Command Line Toolcbt4.0 MiB
InstalledCloud Bigtable Emulatorbigtable3.8 MiB
InstalledCloud Datastore Emulatorcloud-datastore-emulator17.8 MiB
Not InstalledCloud Firestore Emulatorcloud-firestore-emulator60.4 MiB
InstalledCloud Pub/Sub Emulatorpubsub-emulator33.2 MiB
InstalledCloud SQL Proxycloud_sql_proxy7.6 MiB
InstalledCloud Spanner Emulatorcloud-spanner-emulator21.8 MiB
InstalledGoogle Cloud Build Local Buildercloud-build-local4.4 MiB
Installedgcloud app Java Extensionsapp-engine-java118.9 MiB
Installedgcloud app PHP Extensionsapp-engine-php21.9 MiB
Installedgcloud app Python Extensions (Extra Libraries)app-engine-python-extras27.8 MiB
Installedkubectlkubectl12.2 MiB
InstalledCloud BigQuery Command Line Toolbq< 1 MiB
InstalledCloud SDK Core Librariescore7.2 MiB
InstalledCloud Storage Command Line Toolgsutil3.3 MiB
Installedgcloud Alpha Commandsalpha< 1 MiB
Installedgcloud Beta Commandsbeta< 1 MiB
Installedgcloud app Python Extensionsapp-engine-python6.1 MiB

Installing components

To install a component at the current version of your gcloud CLIinstallation, rungcloud components install:

gcloud components install[COMPONENT-ID]

The gcloud CLI installs the specified component.

For example, if you want to install thekubectl command:

gcloud components install kubectl

Updating components

Use thegcloud components updatecommand to update all installed components to the latest available version ofgcloud CLI:

gcloud components update

If you have an older version of the gcloud CLI installed, thegcloud CLI updates all the installed components.

If you need to revert to a previously known good version and installed thegcloud CLI directly (outside of a package manager, including usingthe interactive installer, static versions, Windows installer, or Homebrew),usegcloud components update to revert to the specified version:

gcloud components update --versionVERSION
For downgrading versions of the gcloud CLI installed using a packagemanager, refer to these instructions for specifying versions when downloadingusingapt-get oryum.

Removing components

Use thegcloud components removecommand to remove a specified component by its ID:

gcloud components remove[COMPONENT-ID]

You can re-install a component using thegcloud components install commandat any time.

Additional components

Additional components that contain dependencies for gcloud CLIcommands are also available in the gcloud CLI, but aren't installed bydefault. For an exhaustive list of components, rungcloud components list.Additional components that can be installed are marked with the statusNot Installed.

External package managers

If you installed the gcloud CLI through theaptoryum package managers, you can also installadditional gcloud CLI components using those same package managers. If yourpackage manager cannot find these packages, read theinstalling with apt orinstalling with yum guides to learn how to configurehttps://packages.cloud.google.com/ as a package source.

gcloud CLI componentAPT PackageYUM Package
app-engine-gogoogle-cloud-cli-app-engine-gogoogle-cloud-cli-app-engine-go
app-engine-javagoogle-cloud-cli-app-engine-javagoogle-cloud-cli-app-engine-java
app-engine-pythongoogle-cloud-cli-app-engine-pythongoogle-cloud-cli-app-engine-python
bigtablegoogle-cloud-cli-bigtable-emulatorgoogle-cloud-cli-bigtable-emulator
cbtgoogle-cloud-cli-cbtgoogle-cloud-cli-cbt
cloud-build-localgoogle-cloud-cli-cloud-build-localgoogle-cloud-cli-cloud-build-local
docker-credential-gcrNot yet available.Not yet available.
gcd-emulatorgoogle-cloud-cli-datastore-emulatorgoogle-cloud-cli-datastore-emulator
kubectlkubectlkubectl
pubsub-emulatorgoogle-cloud-cli-pubsub-emulatorgoogle-cloud-cli-pubsub-emulator

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-12-16 UTC.