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

    (x86_64)

    google-cloud-sdk-335.0.0-linux-x86_64.tar.gz 84.4 MB 9cc234763bc70dc383a84a1b74adacc2816be991002352423037f56150fc6b8b
    Linux 32-bit

    (x86)

    google-cloud-sdk-335.0.0-linux-x86.tar.gz 81.8 MB 3b694c9bd8b811a81043dcfc4b03f5483d9fa0a614fd5204c678c8e85d837037
    macOS 64-bit

    (x86_64)

    google-cloud-sdk-335.0.0-darwin-x86_64.tar.gz 84.9 MB 10c281ec93214058d04badec1832d57932c11a79e9cf5fa0da4bb0e7f92b1a6d
    macOS 64-bit

    (arm64)

    google-cloud-sdk-335.0.0-darwin-arm.tar.gz 84.9 MB e45a5e1d502f062cb9ddf919b7e86df9b1f775cdbb65717e8973b065cc3879fe
    macOS 64-bit with bundled Python

    (x86_64)

    google-cloud-sdk-335.0.0-darwin-x86_64-bundled-python.tar.gz 126.9 MB 7ab2b3efacbda5ba0616657f76e6b3280502ef8ace1ef331dfd4eb548fb66917
    macOS 32-bit

    (x86)

    google-cloud-sdk-335.0.0-darwin-x86.tar.gz 88.7 MB e1d244cc85486d30eb79ffb06b9fde8c7c63c4d5ca16cae34805deb071475654
    Windows 64-bit

    (x86_64)

    google-cloud-sdk-335.0.0-windows-x86_64.zip 98.6 MB 0ebf0c6e83529dd3b4d6b82baad68c2ff4a000f65a3b21b8219281a0b03984b2
    Windows 64-bit

    (x86_64) with Python bundled

    google-cloud-sdk-335.0.0-windows-x86_64-bundled-python.zip 132.9 MB d17f9d0060a4cc5431be43cb2facbbca4e8aae9f59de2506d86f16af52d87659
    Windows 32-bit

    (x86)

    google-cloud-sdk-335.0.0-windows-x86.zip 96.9 MB bdc8248a015de05ceaf4532d4338d3db82981a2962c0c7dfe0ef2d061ddb1656
    Windows 32-bit

    (x86) with Python bundled

    google-cloud-sdk-335.0.0-windows-x86-bundled-python.zip 128.3 MB 44dcb6a5c5d91ad21118ac9bea2e149bd482a674ccd6a5349aa40ba0dfd9634d
  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:

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

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