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_BITfrom 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 87.8 MB ccdc90ff5f261b347dc32d71e9e11537a3a061641ec463e4fc37a7f5ebbb2c51 Linux 64-bit (Arm)
google-cloud-cli-linux-arm.tar.gz 60.6 MB 91a121edf074919757e8c87b075cdf56d6da7ce76dd73de782f43c316398830c Linux 32-bit (x86)
google-cloud-cli-linux-x86.tar.gz 60.7 MB ba6521b1f0e3a52a12fccd7e9338a75bf13dcaa1bd24ae3a6a69ba4bc4887e37 macOS 64-bit (x86_64)
google-cloud-cli-darwin-x86_64.tar.gz 60.8 MB 5e38c8ed6b0834b27a6d310762bc439f8cc14554db3938d93ba3d29a11a8fb81 macOS 64-bit (arm64)
google-cloud-cli-darwin-arm.tar.gz 60.7 MB 0baf293d627218a02f7ddbb1263f4271f72999108f0e6914bed5921584dbb038 macOS 32-bit (x86)
google-cloud-cli-darwin-x86.tar.gz 59.2 MB 6b7843eee3747bce4d1b0d352282889e9a576c47d6b073722a2da5a05b430b2f Windows 64-bit (x86_64)
google-cloud-cli-windows-x86_64.zip 83.7 MB c61aa528063c4eeada022db6b26fb9a2ff6d0d56bdd6aae7a1e1dcf2ec299778 Windows 64-bit (x86_64) with Python bundled
google-cloud-sdk-572.0.0-windows-x86_64-bundled-python.zip 109.0 MB 3d28140b89aa41e5d3908c71e7ee6515066fd495fb16a1e83b1b42d3028ed593 Windows 32-bit (x86)
google-cloud-cli-windows-x86.zip 83.7 MB 42910ae76ffffa229ec3d396802551b043ac9e3918ba1f62a2349adb378763a3 Windows 32-bit (x86) with Python bundled
google-cloud-sdk-572.0.0-windows-x86-bundled-python.zip 106.4 MB 6dbe1be07b22c8f5075e8810a6c754734e6f460044304c3b3a93863cda9f0cd4 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
bashshell (Linux and macOS only) and enable usage reporting.On Linux or macOS:
./google-cloud-sdk/install.shTo run the install script with screen reader mode turned on:
./google-cloud-sdk/install.sh --screen-reader=trueOn Windows:
.\google-cloud-sdk\install.bat
Run
install.sh --helporinstall.bat --helpfor 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 initFor 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>.