This page contains instructions for choosing and maintaining a Cloud SDK installation.
Installation instructions
Cloud SDK requires Python; supported versions are Python 3 (preferred, 3.5 to 3.8) and Python 2 (2.7.9 or higher).
python --version
Your operating system must be able to run one of these supported Python versions in order for Cloud SDK to run. For more information on how to choose and configure your Python interpreter, refer togcloud topic startup.- Download one of the following:
-
Alternatively, to download the Linux 64-bit archive file from your
command-line, run:
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-349.0.0-linux-x86_64.tar.gz
For the 64-bit arm archive file, run:curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-349.0.0-linux-arm.tar.gz
For the 32-bit archive file, run:curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-349.0.0-linux-x86.tar.gz - Extract the contents of the file to any location on your file system (preferably
your Home directory). If
you would like to replace an existing installation, remove the existing
google-cloud-sdkdirectory and extract the archive to the same location. - Optional. Use the install script to add Cloud SDK tools to your
PATH. You'll also be able to opt-in to command-completion for your shell and usage statistics collection.Run the script (from the root of the folder you extracted in the last step) using this command:
./google-cloud-sdk/install.sh
This can also be done non-interactively (for example, using a script) as well by providing preferences as flags. These are described in:./google-cloud-sdk/install.sh --help
Open a new terminal so that the changes take effect. - Run gcloud init to initialize the SDK:
- Optional. Install additional components using the component manager.
| Platform | Package | Size | SHA256 Checksum |
|---|---|---|---|
| Linux 64-bit (x86_64) |
google-cloud-sdk-349.0.0-linux-x86_64.tar.gz | 86.4 MB | 50dba9f4d76826b60185338a7622c13377ef9dd7251c4e04455802cbc51d39f4 |
| Linux 64-bit (arm) |
google-cloud-sdk-349.0.0-linux-arm.tar.gz | 83.7 MB | 59a06f5fd3685d6c40181c02243fa3bfe076dcbc2c7b6da72d42f57efe3fb40b |
| Linux 32-bit (x86) |
google-cloud-sdk-349.0.0-linux-x86.tar.gz | 83.7 MB | 83c81641601a7ef33841ca019d7592306d3fb5f18ce809122d5d66020ed56cd4 |
./google-cloud-sdk/bin/gcloud init
Package contents
Cloud SDK is available in package format for installation on Debian and Ubuntu systems. This
package contains the gcloud, gcloud alpha, gcloud beta,
gsutil, and bq commands only. It does not include kubectl
or the App Engine extensions required to deploy an application using gcloud commands.
If you want these components, you must install them separately as described
later in this section.
Before you install Cloud SDK, make sure that your operating system is one of the following:
- Ubuntu release that has not reached end-of-life
- Debian stable release that has not reached end-of-life
- Add the Cloud SDK distribution URI as a package source:
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
Make sure you have apt-transport-https installed:sudo apt-get install apt-transport-https ca-certificates gnupg
- Import the Google Cloud public key:
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
- Update and install the Cloud SDK:
sudo apt-get update && sudo apt-get install google-cloud-sdk
For additionalapt-getoptions, such as disabling prompts or dry runs, refer to theapt-getman pages.Docker Tip: If installing the Cloud SDK inside a Docker image, use a single RUN step instead:
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && apt-get update -y && apt-get install google-cloud-sdk -y - Optionally, install any of these
additional components:
google-cloud-sdk-app-engine-pythongoogle-cloud-sdk-app-engine-python-extrasgoogle-cloud-sdk-app-engine-javagoogle-cloud-sdk-app-engine-gogoogle-cloud-sdk-bigtable-emulatorgoogle-cloud-sdk-cbtgoogle-cloud-sdk-cloud-build-localgoogle-cloud-sdk-datalabgoogle-cloud-sdk-datastore-emulatorgoogle-cloud-sdk-firestore-emulatorgoogle-cloud-sdk-pubsub-emulatorkubectl
For example, the
google-cloud-sdk-app-engine-javacomponent can be installed as follows:sudo apt-get install google-cloud-sdk-app-engine-java
- Run
gcloud initto get started:gcloud init
Downgrading Cloud SDK versions
If you'd like to revert to a specific version of Cloud SDK, where VERSION is
of the form 123.0.0, run:
sudo apt-get update && sudo apt-get install google-cloud-sdk=123.0.0-0
The most recent ten releases will always be available in the repo.
Package contents
Cloud SDK is available in package format for installation on Red Hat Enterprise Linux 7, Red Hat
Enterprise Linux 8, Fedora 33, and CentOS 7 and 8 systems. This package contains the gcloud,
gcloud alpha, gcloud beta, gsutil, and bq
commands only. It does not include kubectl or the App Engine extensions required to
deploy an application using gcloud commands, which can be
installed separately as described later in this section.
- Update DNF with Cloud SDK repo information:
sudo tee -a /etc/yum.repos.d/google-cloud-sdk.repo << EOM [google-cloud-sdk] name=Google Cloud SDK baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64 enabled=1 gpgcheck=1 repo_gpgcheck=0 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg EOM - Install the Cloud SDK:
sudo dnf install google-cloud-sdk
- Optionally, install any of these
additional components:
google-cloud-sdk-app-engine-pythongoogle-cloud-sdk-app-engine-python-extrasgoogle-cloud-sdk-app-engine-javagoogle-cloud-sdk-app-engine-gogoogle-cloud-sdk-bigtable-emulatorgoogle-cloud-sdk-cbtgoogle-cloud-sdk-cloud-build-localgoogle-cloud-sdk-datalabgoogle-cloud-sdk-datastore-emulatorgoogle-cloud-sdk-firestore-emulatorgoogle-cloud-sdk-pubsub-emulatorkubectl
For example, the
google-cloud-sdk-app-engine-javacomponent can be installed as follows:sudo dnf install google-cloud-sdk-app-engine-java
- Run
gcloud initto get started:gcloud init
Downgrading Cloud SDK versions
If you'd like to revert to a specific version of Cloud SDK, where VERSION is
of the form 123.0.0, run:
sudo dnf downgrade google-cloud-sdk-VERSION
The most recent ten releases will always be available in the repo.
- Cloud SDK requires Python; supported versions are Python 3 (preferred, 3.5 to 3.8) and
Python 2 (2.7.9 or higher). Modern versions of macOS include the appropriate
version of Python required for the Cloud SDK.
However, if you'd like to install Python 3 with Cloud SDK, you can choose the macOS 64-bit with bundled Python installation offering.
To check your current Python version, run:
python -V
For more information on how to choose and configure your Python interpreter, refer togcloud topic startup. - Download one of the following:
- Extract the archive to any location on your file system (preferably your
Home directory). On macOS, this can be achieved by opening the
downloaded
.tar.gzarchive file in the preferred location.If you would like to replace an existing installation, remove the existing
google-cloud-sdkdirectory and extract the archive to the same location. - Optional. Use the install script to add Cloud SDK tools to your
PATH. You'll also be able to opt-in to command-completion for your shell and usage statistics collection.Run the script (from the root of the folder you extracted in the last step) using this command:
./google-cloud-sdk/install.sh
This can also be done non-interactively (for example, using a script) as well by providing preferences as flags. These are described in:./google-cloud-sdk/install.sh --help
If you'd like to run the install script with screen reader mode on:./google-cloud-sdk/install.sh --screen-reader=true
Open a new terminal so that the changes take effect. - Run gcloud init to initialize the SDK:
- Optional. Install additional components using the component manager.
| Platform | Package | Size | SHA256 Checksum |
|---|---|---|---|
| macOS 64-bit (x86_64) |
google-cloud-sdk-349.0.0-darwin-x86_64.tar.gz | 86.9 MB | 94f4a277921a6942f337b0db15c5ae1c44949822af41a8a8ce9746ca8f6a6138 |
| macOS 64-bit (arm64) |
google-cloud-sdk-349.0.0-darwin-arm.tar.gz | 86.8 MB | ab834e7cc081ebf4acf271951defcb9e7d8db9a1fd910bdce332489b1c999c43 |
| macOS 64-bit with bundled Python (x86_64) |
google-cloud-sdk-349.0.0-darwin-x86_64-bundled-python.tar.gz | 128.8 MB | 3477e4607fa45d34c18a8f2545aa69e82c5dec3b240dc84444907fc65823a316 |
| macOS 32-bit (x86) |
google-cloud-sdk-349.0.0-darwin-x86.tar.gz | 90.6 MB | 6b4d9b8aa91f0c647f97967e21daa71fc8a7c843f36e1832d5562f2cce0667da |
./google-cloud-sdk/bin/gcloud init
-
Download the Cloud SDK installer.
Alternatively, open a PowerShell terminal and run the following PowerShell commands.
(New-Object Net.WebClient).DownloadFile("https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe", "$env:Temp\GoogleCloudSDKInstaller.exe") & $env:Temp\GoogleCloudSDKInstaller.exe -
Launch the installer and follow the prompts. The installer is signed by Google LLC.
If you'd like to enable screen reader mode, select the Turn on screen reader mode option for a more streamlined screen reader experience. To read more about the Cloud SDK screen reader experience, refer to the Accessibility features guide.

-
Cloud SDK requires Python; supported versions are Python 3 (preferred, 3.5 to 3.8; the installer comes with Python 3 bundled by default) and Python 2 (2.7.9 or higher). Your operating system must be able to run one of these supported Python versions in order for Cloud SDK to run.
The installer installs all necessary dependencies, including the needed Python version. While Cloud SDK currently installs and manages Python 3 by default, you can use an existing Python installation if necessary by unchecking the option to Install Bundled Python.
After installation has completed, the installer presents several options:

Make sure that the following are selected:
- Start Google Cloud SDK Shell
- Run
gcloud init
The installer starts a terminal window and runs the
gcloud initcommand.- The default installation does not include the App Engine extensions required to deploy an
application using
gcloudcommands. These components can be installed using the Cloud SDK component manager.
- If your installation is unsuccessful
due to the
findcommand not being recognized, ensure yourPATHenvironment variable is set to include the folder containingfind. Usually, this isC:\WINDOWS\system32;. - If you have just uninstalled Cloud SDK, you will need to reboot your system before installing Cloud SDK again.
Optional: Install the latest Google Cloud Client Libraries
You can download Cloud Client Libraries for supported languages.
Other installation options
Depending on your development needs, instead of the recommended installation, you can use an alternative method of installing Cloud SDK:
- Using Cloud SDK with scripts or Continuous Integration/Deployment? Download a versioned archive for a non-interactive installation of a specific version of Cloud SDK.
- Need to run Cloud SDK as a Docker image? Use the Cloud SDK Docker image for the latest release (or specific version) of Cloud SDK.
- Running Ubuntu and prefer automatic updates? Use a snap package to install the Cloud SDK.
- For Windows and macOS interactive installations, and all other use cases, run the interactive installer to install the latest release of Cloud SDK.
What's in the box?
All of the installation methods above install the default Cloud SDK components,
which include gcloud, gsutil and bq command-line tools.
You can install additional components
using the gcloud components install command, or by installing the appropriate
deb or RPM packages.
Managing an installation
After you have installed Cloud SDK, you can use
commands in the gcloud components command
group to manage your installation. This
includes viewing installed components, adding and removing components, and
upgrading to a new version (or downgrading to a specific version) of Cloud SDK.
Older versions of Cloud SDK
If you'd need an older version of Cloud SDK to revert to, you can find all previous releases available to download from this archive.
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