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-345.0.0-linux-x86_64.tar.gz 85.9 MB c708b60dfc9f8cf34272d4330f69a93101091c27b63bb5533b59bcb6d44f8e7d
    Linux 32-bit


    google-cloud-sdk-345.0.0-linux-x86.tar.gz 83.3 MB ab2c299ebb3ad02eb1fb79a6b4be5982f6e9cb9baefc3debccf48118a19daa1c
    macOS 64-bit


    google-cloud-sdk-345.0.0-darwin-x86_64.tar.gz 86.4 MB 705d2b82f711e042d930bf96103291f472d7a1aab5a152bfed2896d595d811dd
    macOS 64-bit


    google-cloud-sdk-345.0.0-darwin-arm.tar.gz 86.4 MB 4db070e65d5dba33efd2c2d744845aaa1dac56f94e5e439604800ffa0bf27dff
    macOS 64-bit with bundled Python


    google-cloud-sdk-345.0.0-darwin-x86_64-bundled-python.tar.gz 128.3 MB 9fbd0c3095e2cbab456a4e9ffef79ba360d8ba6396d64da1807b7370bb2b638c
    macOS 32-bit


    google-cloud-sdk-345.0.0-darwin-x86.tar.gz 90.2 MB ed1e2d4df975a29755f3aa5ced605cf4db47ffbf7dbf36465524cde57b02d1c0
    Windows 64-bit

    (x86_64) 100.8 MB 84f1054d6b7bdec019d1a41b7bf3153f13c11183ac52daf2600667c201316f9e
    Windows 64-bit

    (x86_64) with Python bundled 135.0 MB 71f6ade3da8371c978ef72c02279fb0cb6d1b83ef5d22e4826354fc3b2f5bea3
    Windows 32-bit

    (x86) 99.0 MB c122fde195d05c6ca01bebe54200e4515330cf0dbe8c84cc4cbe818d1a861a25
    Windows 32-bit

    (x86) with Python bundled 130.5 MB dad98c491948631fafb5a938e97bc075362b8a9e1b1eadfc3e4d85b3aa26216a
  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