The gcloud CLI provides downloadable, versioned archives for each release.
Each versioned archive contains a self-contained installation of the
gcloud CLI in a directory named google-cloud-sdk
that can be copied
to any location on your file system.
Best uses for installing from versioned archives
Versioned archives are designed for non-interactive installation of specific versions of the gcloud CLI and are useful when:
You require a specific version of the gcloud CLI. For example:
- You're scripting with the gcloud CLI or another gcloud CLI component and want to make sure that your scripts don't break as the result of a gcloud CLI update.
- You're using the gcloud CLI as part of a CI (continuous integration) process or production system where you want to control your dependencies in order to ensure compatibility between parts of the system.
- You're performing automated deployments of the gcloud CLI to many machines that must be in sync.
- You're behind a proxy or firewall that requires additional configuration to be able to access the internet.
You don't want to perform an interactive installation.
Installation instructions
To install the latest release of the gcloud CLI from a versioned archive:
Check which version (64-bit or 32-bit) your OS is running on.
- Linux / macOS: Run
getconf LONG_BIT
from your command line - Windows: Control Panel > System > System Type
Additionally, for macOS, to check your machine hardware name (x86_64, arm64, or x86), run
uname -m
.- Linux / macOS: Run
Download the appropriate archive compatible with your version:
Platform Package Size SHA256 Checksum Linux 64-bit (x86_64)
google-cloud-cli-linux-x86_64.tar.gz 149.9 MB 4ebee5d68283102673b97dabb1ffc069c8d2539693de2f96a60448aabb8afd37 Linux 64-bit (Arm)
google-cloud-cli-linux-arm.tar.gz 56.5 MB 8c6bd7e56a253d9353fa1381036e39f5424b72ccda475f076a38ffd8be5d1484 Linux 32-bit (x86)
google-cloud-cli-linux-x86.tar.gz 56.6 MB 4434d0523791ec2cd9d614f087f87f15df3d58abe6454ae2d0fc6dbe7198077a macOS 64-bit (x86_64)
google-cloud-cli-darwin-x86_64.tar.gz 56.6 MB 819391042fe8ecb3f090d83ab9f26f89a78a1afe108d3f6bc2f2004442c33545 macOS 64-bit (arm64)
google-cloud-cli-darwin-arm.tar.gz 56.6 MB fef836141d2c45739e6ed602750f2eda7265c0206110e061bdf14d8a17f78481 macOS 32-bit (x86)
google-cloud-cli-darwin-x86.tar.gz 55.1 MB 179abf3b5174d5d7662ede573031c7ffa1f3def162c2eea5919c07f33a4308d8 Windows 64-bit (x86_64)
google-cloud-cli-windows-x86_64.zip 77.7 MB 50557967ae4a1f9f78ba030effefca243edaa7365d1a7310069fecdbba56d00a Windows 64-bit (x86_64) with Python bundled
google-cloud-sdk-535.0.0-windows-x86_64-bundled-python.zip 101.1 MB 51236ad3c0506660864922b2e3dab885fe48563491f2b12ee5da6f5689b8bed9 Windows 32-bit (x86)
google-cloud-cli-windows-x86.zip 77.6 MB 5e38f007b865aa7f30233417e4aee292f045c963a319297ae7df445091e873cc Windows 32-bit (x86) with Python bundled
google-cloud-sdk-535.0.0-windows-x86-bundled-python.zip 98.7 MB 84096b5d21d5f68e1378c7253d127cb4e03909e49daa64740abcf9c7d4dca479 Extract the contents of the file to any location on your file system. Preferably, this is your Home folder.
To add the gcloud CLI tools to your path, run the install script from the root of the folder you extracted. Running this script also generates instructions to enable command completion in your
bash
shell (Linux and macOS only) and enable usage reporting.On Linux or macOS:
./google-cloud-sdk/install.sh
To run the install script with screen reader mode turned on:
./google-cloud-sdk/install.sh --screen-reader=true
On Windows:
.\google-cloud-sdk\install.bat
Run
install.sh --help
orinstall.bat --help
for a list of flags you can pass to this script, including those that can run the installation non-interactively.To initialize the gcloud CLI, run
gcloud init
:For Linux or macOS:
./google-cloud-sdk/bin/gcloud init
For Windows:
.\google-cloud-sdk\bin\gcloud init
Previous versions
Previous versions of the gcloud CLI are available in the
download archive
in Cloud Storage. They are directly accessible through
https://storage.googleapis.com/cloud-sdk-release/<archive_name>
.