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 bd84779b7cc2eb353213e70c926e85d908f956e0cbb7cf2ced67d130f6dfe9a1 Linux 64-bit (Arm)
google-cloud-cli-linux-arm.tar.gz 56.5 MB b2657d5cbb819ac94c9a0465a8e3e99c433ac004cea23d189a264048653ad45e Linux 32-bit (x86)
google-cloud-cli-linux-x86.tar.gz 56.5 MB c7ef2ec44da3f0aa38e06de072eddbaa368ee947c3fdb66aa2aca7b126c62e88 macOS 64-bit (x86_64)
google-cloud-cli-darwin-x86_64.tar.gz 56.6 MB 547c278754fab51a46615f853fa1909d37773b2fa177387a92541fc14e96a87e macOS 64-bit (arm64)
google-cloud-cli-darwin-arm.tar.gz 56.5 MB 849634e8c95a1507862431c4773cd5312080fd0fa601c00699f2476a4437dfea macOS 32-bit (x86)
google-cloud-cli-darwin-x86.tar.gz 55.1 MB 7fa38469c7ac8c5b1c9cad40f9fb7adbcd85dab689d32df16785879476ddb6af Windows 64-bit (x86_64)
google-cloud-cli-windows-x86_64.zip 77.6 MB 2b845102bfc76bd7fc5e8e3670054c37a7d975333f006c3ce84c53e8b3e1ebbd Windows 64-bit (x86_64) with Python bundled
google-cloud-sdk-534.0.0-windows-x86_64-bundled-python.zip 101.1 MB a7d6906c7503f55fceb4e8d468b472900511849be0be9a82dd4eb91f1025ac05 Windows 32-bit (x86)
google-cloud-cli-windows-x86.zip 77.6 MB 8d33dfb6ac393043b64dbdca1d7f4d3d989354c96389a111d8386beb92f66297 Windows 32-bit (x86) with Python bundled
google-cloud-sdk-534.0.0-windows-x86-bundled-python.zip 98.7 MB 5be1e53573abd930393385124c6918670c4afaeb82282ea0e2fe67c932d25bf6 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>
.