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 132.7 MB d03589f20ffc39a9565ed352fc0ecc28e8251b9ebae4c2a8d1306adeb9c4fcab Linux 64-bit (Arm)
google-cloud-cli-linux-arm.tar.gz 54.9 MB f20e867278448286d28dc825c7ebe0cc0d9b6f41ea7c63a9cac4f5ef1bb15531 Linux 32-bit (x86)
google-cloud-cli-linux-x86.tar.gz 54.9 MB 78dc9eafb151f8f6aee72703c784de2d385e4d6a5acbe22ac420f826f9851913 macOS 64-bit (x86_64)
google-cloud-cli-darwin-x86_64.tar.gz 55.0 MB 1eac8f8a6aa355c47d764f440a94879db3325deb37c47ca54427e21abb42b762 macOS 64-bit (arm64)
google-cloud-cli-darwin-arm.tar.gz 54.9 MB e409d6bb2158fec4df8854450a0af9d7053d37a48040e861572919b2a27d5c5b macOS 32-bit (x86)
google-cloud-cli-darwin-x86.tar.gz 53.5 MB 1a7b4abe747476aeff765838089c4c7f09e8d1306ad6c637043c148f42905820 Windows 64-bit (x86_64)
google-cloud-cli-windows-x86_64.zip 75.0 MB c0b45e6e0b8acf7a9217841f0e2e9412df68df8dcfec760bea23a30743bffeab Windows 64-bit (x86_64) with Python bundled
google-cloud-sdk-507.0.0-windows-x86_64-bundled-python.zip 100.2 MB 812bb7f7574921e5b03764bca690043c4ce129fc438a04198a24a23ee403e1d1 Windows 32-bit (x86)
google-cloud-cli-windows-x86.zip 74.9 MB 439d14ed5b60aebfc6f5b619658cb524e81759fd1f0e8629bd3b6d65faa7ae8b Windows 32-bit (x86) with Python bundled
google-cloud-sdk-507.0.0-windows-x86-bundled-python.zip 97.7 MB 10d307affc3a4f4078d636974c5dc18497b0fe540be7b7bc7d757ccacaf3751d 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