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 148.5 MB f74150eefbf97a1f5b8a521525df90595676408ea4b293d3ca3b19ac2173c6b0 Linux 64-bit (Arm)
google-cloud-cli-linux-arm.tar.gz 55.2 MB 19a697bc202435d8cece93653c19fb7c11d420d317d2c27936b4bdd074f7762a Linux 32-bit (x86)
google-cloud-cli-linux-x86.tar.gz 55.2 MB b872fea3ad2ccf0bc0c255426cf6fe0f28887c951a621827fb8a0f8e3fa7c838 macOS 64-bit (x86_64)
google-cloud-cli-darwin-x86_64.tar.gz 55.3 MB 3bb221362f40271d79bed23bb5d20d6dc05698e3b37d55fb3147a00a4a7f13f7 macOS 64-bit (arm64)
google-cloud-cli-darwin-arm.tar.gz 55.2 MB c8777fc2598ebc5bc0d83dc460b28917f011c762aee04b96b8d387d260424e08 macOS 32-bit (x86)
google-cloud-cli-darwin-x86.tar.gz 53.8 MB b003bd25c802a5a878342376403f67de8d20c770fe2c08a8da758bedb2b15051 Windows 64-bit (x86_64)
google-cloud-cli-windows-x86_64.zip 75.8 MB 47510f6340d98f7e46df69a4fb6cbe71eeff4b9d5a297d87474b9eaa42a89d9c Windows 64-bit (x86_64) with Python bundled
google-cloud-sdk-520.0.0-windows-x86_64-bundled-python.zip 99.1 MB ddebde089afcafff5eea95c2c95dc93b16466e7e972be69bc9ce53e2a5418b48 Windows 32-bit (x86)
google-cloud-cli-windows-x86.zip 75.7 MB 2c5897a12f0bba9b25a6f12e6de90c5bc4e047892faa455d361b359c9a2c67f4 Windows 32-bit (x86) with Python bundled
google-cloud-sdk-520.0.0-windows-x86-bundled-python.zip 96.7 MB e8b4c6aa5e8d8b7f939df23d5882a945a1cb7e7983040b146e1e08a54b6efeef 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>
.
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