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-339.0.0-linux-x86_64.tar.gz 85.0 MB 7eb54fa51468bc562dee02ba00f4a8e4683d9c37ebb793c56039a46acfdddca7
    Linux 32-bit


    google-cloud-sdk-339.0.0-linux-x86.tar.gz 82.4 MB 2994f66a789fe746c3f31306c0f71a6ce1143cdad79ed1c6a951f287da4e6e01
    macOS 64-bit


    google-cloud-sdk-339.0.0-darwin-x86_64.tar.gz 85.5 MB d32bd4d0677bc3a2dcf5cf2f090c0864b5beea4606b5924a216a3980d1d166f5
    macOS 64-bit


    google-cloud-sdk-339.0.0-darwin-arm.tar.gz 85.5 MB f37099fdabdb89440d8ad93d082f636bcbea71fc4b32885f2748ffef4517b473
    macOS 64-bit with bundled Python


    google-cloud-sdk-339.0.0-darwin-x86_64-bundled-python.tar.gz 127.4 MB b03ad32a643c3f4a1f9815ba10ca67139c5d358d1dc805141a2ce72f61e9a73c
    macOS 32-bit


    google-cloud-sdk-339.0.0-darwin-x86.tar.gz 89.3 MB 1321c57ce737e1c6a877e253945e8fc85158b5a6900257a0944ae3603e4c16f9
    Windows 64-bit

    (x86_64) 99.5 MB 67b478b38b595b4bb44cfa5776017c2266bd6494729cb91116e14b5485590cf2
    Windows 64-bit

    (x86_64) with Python bundled 133.8 MB 84e3fcbbc30c5de7940a32588286f4db238792c182c649bdc6f88da444840617
    Windows 32-bit

    (x86) 97.8 MB 9b93c818562c28e68afee5e34497506bcf94aff12a4b0cf883027712b2004bbf
    Windows 32-bit

    (x86) with Python bundled 129.2 MB 84f354cbfb05a4c329cf0ca627222ea5d2d55ef502ea2cf8047cdd0fd821b2f1
  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