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

    Platform Package Size SHA256 Checksum
    Linux 64-bit


    google-cloud-sdk-329.0.0-linux-x86_64.tar.gz 112.3 MB bab65ba4997632a85bbf7f5d7c7cfceb851edd0fa00114151dea2492b8045854
    Linux 32-bit


    google-cloud-sdk-329.0.0-linux-x86.tar.gz 86.8 MB 141b394133104d149bf3ede72a35c050d6ef43af4f9ed055e5dbf2f3120941ee
    macOS 64-bit


    google-cloud-sdk-329.0.0-darwin-x86_64.tar.gz 110.4 MB 1edda5cc0168e8c350e56ffbec1b5b78638e2c0a48e5dd88699d89ccfb35d688
    macOS 32-bit


    google-cloud-sdk-329.0.0-darwin-x86.tar.gz 87.9 MB da72313f5762ddc56ce121e2f32c5af2fdf7c93a3667104ccd2e769d0f44d689
    Windows 64-bit

    (x86_64) 123.4 MB c3025fe1d7c94a0378318d82a0e4cf7b46918a834b72473158a3507d5750acd0
    Windows 64-bit

    (x86_64) with Python bundled 157.7 MB 7086642c6829907f35eaaea315f2e236f86a0a03fcdfa607df41c73abc41c7bd
    Windows 32-bit

    (x86) 100.1 MB 9d2af1b2c68eb2e4d8a46c4bd5f3d1d6b7c56796233ae0fe5d22a3e81d83c19d
    Windows 32-bit

    (x86) with Python bundled 131.6 MB 8eaae9c4ac1abcf9ebc6dfd10b1c338ec5929be66aca1a44e7748d29b524cd46
  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