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:
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
.
Download the appropriate archive compatible with your version:
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
or
install.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
:
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