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-473.0.0-linux-x86_64.tar.gz 129.9 MB e15da3e41f24c072a3e8359dffca08d5ab7ee03f94e2e8711bbfbaf1cc3456f8 Linux 64-bit (Arm)
google-cloud-cli-473.0.0-linux-arm.tar.gz 51.7 MB c16fa95ea22b27a887aafa9d86e439794b6c80b0f97a1210bf8b7c57afb03c27 Linux 32-bit (x86)
google-cloud-cli-473.0.0-linux-x86.tar.gz 51.7 MB 85ef8a1303bbc2e919bfc3fb2fe2ea758a196435b935f88a297d6b1cb42ae570 macOS 64-bit (x86_64)
google-cloud-cli-473.0.0-darwin-x86_64.tar.gz 51.7 MB 9ddd90144a004d9ff630781e9b8f144c21b2cea8fb45038073b7fb82399ed478 macOS 64-bit (arm64)
google-cloud-cli-473.0.0-darwin-arm.tar.gz 51.7 MB 4b534bf60585b6f6918daf0feeb0b68b39a689a794404e5a4f8fd8ce844de31c macOS 32-bit (x86)
google-cloud-cli-473.0.0-darwin-x86.tar.gz 50.4 MB 7c15cd239528437f7f8f1718709c653c03edf2ff53907c4e834c5eeab7a3a55e Windows 64-bit (x86_64)
google-cloud-cli-473.0.0-windows-x86_64.zip 70.2 MB 9eacd3f507d3e9fd7a9ed4b8651056be18124ee22369ffcea9f5a3646e0a70a2 Windows 64-bit (x86_64) with Python bundled
google-cloud-sdk-473.0.0-windows-x86_64-bundled-python.zip 181.9 MB d225dcf7d20e0fe5c72c65cbddaebd05aaa2fd434c4a5f0fd53e1b83f6ca3800 Windows 32-bit (x86)
google-cloud-cli-473.0.0-windows-x86.zip 70.1 MB e8166b3755f01ced1e8e7b5c289743eecc0cf89b4c2481ca48008d5f78bf404f Windows 32-bit (x86) with Python bundled
google-cloud-sdk-473.0.0-windows-x86-bundled-python.zip 173.0 MB dde1867e45d0836e2f8278de3cf55659efda5aa683b2de88f4272403ec026675 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