Managing gcloud CLI components

Components are the installable parts of the Google Cloud CLI. A component can be a command-line tool (gcloud, bq, and gsutil), a set of gcloud CLI commands at the Alpha, Beta, or Preview release levels, or a package that contains dependencies used by a tool in the gcloud CLI.

The most commonly-used components are installed by default. If you run a gcloud alpha, gcloud beta, or gcloud preview command interactively and the alpha, beta, or preview component is not installed, the gcloud CLI asks you whether you want to install it. An affirmative response installs the component and then runs the command. Other components are installed on-demand by the gcloud 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 are installed by default:

ID Name Description
gcloud Default gcloud CLI commands Tool for interacting with Google Cloud. Only commands at the General Availability release level are installed with this component. You must separately install the gcloud alpha Commands, gcloud beta Commands, and/or gcloud preview Commands components if you want to use commands at other release levels.
bq BigQuery command-line tool Tool for working with data in BigQuery
gsutil Legacy tool for performing Cloud Storage tasks. Use gcloud storage commands instead.
core gcloud CLI core libraries Libraries used internally by the gcloud CLI tools.

Alpha, beta, and preview components

The gcloud CLI provides components that contain gcloud CLI alpha, beta, and preview commands. These components aren't installed by default, but you can install them manually at any time after the initial gcloud CLI installation. These components are:

ID Name Description
alpha gcloud CLI alpha commands gcloud CLI commands at the alpha release level.
beta gcloud CLI beta commands gcloud CLI commands at the beta release level.
preview gcloud CLI preview commands gcloud CLI commands at the preview release level.

gcloud CLI commands at the General Availability release level are part of the gcloud CLI component and are installed automatically when you install the gcloud CLI.

A list of all available additional components and external package managers, which aren't installed by default, appears below.

Managing gcloud CLI components

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

Note: These instructions won't work if you have installed gcloud CLI using a package manager such as APT or yum because gcloud CLI component manager is disabled when using that method of installation. Use these packages instead.

Listing components

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

gcloud components list

The following sample isn't a complete listing of all available components. To view the latest component offerings, update your gcloud CLI installation and then run gcloud components list.

Status Component Name ID Size
Installed App Engine Go Extensions app-engine-go 97.7 MiB
Installed Cloud Bigtable Command Line Tool cbt 4.0 MiB
Installed Cloud Bigtable Emulator bigtable 3.8 MiB
Installed Cloud Datastore Emulator cloud-datastore-emulator 17.8 MiB
Not Installed Cloud Firestore Emulator cloud-firestore-emulator 60.4 MiB
Installed Cloud Pub/Sub Emulator pubsub-emulator 33.2 MiB
Installed Cloud SQL Proxy cloud_sql_proxy 7.6 MiB
Installed Cloud Spanner Emulator cloud-spanner-emulator 21.8 MiB
Installed Google Cloud Build Local Builder cloud-build-local 4.4 MiB
Installed gcloud app Java Extensions app-engine-java 118.9 MiB
Installed gcloud app PHP Extensions app-engine-php 21.9 MiB
Installed gcloud app Python Extensions (Extra Libraries) app-engine-python-extras 27.8 MiB