Installing from versioned archives

Cloud SDK provides downloadable, versioned archives for each release. Each versioned archive contains a self-contained installation of Cloud SDK 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 Cloud SDK and are useful when:

  • You require a specific version of Cloud SDK. For example:

    • You are scripting with the gcloud CLI or one of the other Cloud SDK components and want to make sure that your scripts don't break as the result of a Cloud SDK update.
    • You are using Cloud SDK 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 are performing automated deployments of Cloud SDK to many machines that must be in sync with each other.
    • You are 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 Cloud SDK from a versioned archive:

  1. 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.

  2. Download the appropriate archive compatible with your version:

    Platform Package Size SHA256 Checksum
    Linux 64-bit


    google-cloud-sdk-349.0.0-linux-x86_64.tar.gz 86.4 MB 50dba9f4d76826b60185338a7622c13377ef9dd7251c4e04455802cbc51d39f4
    Linux 32-bit


    google-cloud-sdk-349.0.0-linux-x86.tar.gz 83.7 MB 83c81641601a7ef33841ca019d7592306d3fb5f18ce809122d5d66020ed56cd4
    macOS 64-bit


    google-cloud-sdk-349.0.0-darwin-x86_64.tar.gz 86.9 MB 94f4a277921a6942f337b0db15c5ae1c44949822af41a8a8ce9746ca8f6a6138
    macOS 64-bit


    google-cloud-sdk-349.0.0-darwin-arm.tar.gz 86.8 MB ab834e7cc081ebf4acf271951defcb9e7d8db9a1fd910bdce332489b1c999c43
    macOS 64-bit with bundled Python


    google-cloud-sdk-349.0.0-darwin-x86_64-bundled-python.tar.gz 128.8 MB 3477e4607fa45d34c18a8f2545aa69e82c5dec3b240dc84444907fc65823a316
    macOS 32-bit


    google-cloud-sdk-349.0.0-darwin-x86.tar.gz 90.6 MB 6b4d9b8aa91f0c647f97967e21daa71fc8a7c843f36e1832d5562f2cce0667da
    Windows 64-bit

    (x86_64) 101.4 MB 80c742bff07cdd55bfef503690a5babea2c98fed862e94a79644d1ac7e35e54f
    Windows 64-bit

    (x86_64) with Python bundled 136.0 MB c179373fcc702a3e468694516e62456236fa729ede5273df392a340c70acb64c
    Windows 32-bit

    (x86) 99.7 MB ff6465308aec50e2cc9356f1dd8494cca8c3c9e4c404ecfaf6588ef13279af09
    Windows 32-bit

    (x86) with Python bundled 131.4 MB 5d507850b7b21c16f2994e2684c51711debf2397316c449c08ab9a9927b4a3ab
  3. Extract the contents of the file to any location on your file system. Preferably, this is your Home folder.

  4. Optional. If you'd like to add Cloud SDK tools to your path, run the install script. This should be run from the root of the folder you extracted above. Running this script will also generate instructions to enable command completion in your bash shell (Linux and macOS only) and enable usage reporting.

    • On Linux or macOS:


      To run the install script with screen reader mode turned on:

      ./google-cloud-sdk/ --screen-reader=true
    • On Windows:


    Run --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.

  5. Run gcloud init to initialize the SDK.

    • For Linux or macOS:

      ./google-cloud-sdk/bin/gcloud init

    • For Windows:

      .\google-cloud-sdk\bin\gcloud init

Previous versions

Previous versions of Cloud SDK are available in the download archive in Google Cloud Storage. They are directly accessible through<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