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-470.0.0-linux-x86_64.tar.gz 207.1 MB 4e6ccbb73a1f86100230651baece6be5aad5be6d6c35a7298a8db90c07d0d69a Linux 64-bit (Arm)
google-cloud-cli-470.0.0-linux-arm.tar.gz 124.0 MB e228048a54cb412c27d541cd97480a5c39e49d6e721f25f5d82220c0257cd30a Linux 32-bit (x86)
google-cloud-cli-470.0.0-linux-x86.tar.gz 122.1 MB a361dbe8dbf65830ee2220d7aa3d2b41e0c217fd3fe29e7d875fd16d56e70513 macOS 64-bit (x86_64)
google-cloud-cli-470.0.0-darwin-x86_64.tar.gz 129.8 MB da7bd1902af1a3b2a7012b41c56f921a40007932498f6d687040bba47a03841d macOS 64-bit (arm64)
google-cloud-cli-470.0.0-darwin-arm.tar.gz 126.9 MB e92d9af260ef28300ed2d5c30a4871fe1cac3f44dac823a358c52b11b56dd058 macOS 32-bit (x86)
google-cloud-cli-470.0.0-darwin-x86.tar.gz 128.5 MB 2186a470aa909ce95a9e05023f58f45669f655b4d865adc47f7e7029735401a5 Windows 64-bit (x86_64)
google-cloud-cli-470.0.0-windows-x86_64.zip 148.1 MB 0e794d78f40631b7f2f8c94d62cf8936258c15adb9f27f3c41c1df6a32661967 Windows 64-bit (x86_64) with Python bundled
google-cloud-sdk-470.0.0-windows-x86_64-bundled-python.zip 186.6 MB c36bb8e7f5d72d3c1f56d8711d768842fccf0d140e14cb37cd07f9d854a77646 Windows 32-bit (x86)
google-cloud-cli-470.0.0-windows-x86.zip 142.7 MB 4e4bc2c42d99e675b2fbc131e48f4508180f2429801e21f508b5daaf1786830f Windows 32-bit (x86) with Python bundled
google-cloud-sdk-470.0.0-windows-x86-bundled-python.zip 177.8 MB 67a8aee1ba2637616500b64141bd04f2735ebc37c360adcaa9cbbbd379106329 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