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-299.0.0-linux-x86_64.tar.gz 78.9 MB 240042ba13bdef96e2d494dc67c3c367dfb27d0db5b9cb5bce4d3a517671762f
    Linux 32-bit


    google-cloud-sdk-299.0.0-linux-x86.tar.gz 77.0 MB 87ea36641d452a04d21c9bf2650ce1cefe11ce7774f385b35e2d9fda9555c883
    macOS 64-bit


    google-cloud-sdk-299.0.0-darwin-x86_64.tar.gz 79.3 MB c1b20c2beac1bcb67752db7fd1345733e31a33b9f0478d23668ba23233cb6618
    macOS 32-bit


    google-cloud-sdk-299.0.0-darwin-x86.tar.gz 78.1 MB da6d992cfc80acf540229d9ec7464e39ca7c84707474e382167f55ed0b267efb
    Windows 64-bit

    (x86_64) 330.7 MB 7ef58aa46aaca731e464a28c68905a9429ab9e37ef930525db33b33cb75c98dc
    Windows 64-bit

    (x86_64) with Python bundled 412.8 MB 854ba8bee9095b1543bd44c4f06e9472560be7e1892bc6fb5cfa2e142fcc98c6
    Windows 32-bit

    (x86) 315.0 MB 5d77d5791809a3e3ffeb058ad262b770a741d6804c2791c76c523c436674c942
    Windows 32-bit

    (x86) with Python bundled 390.3 MB f006c8f4e422d3cc571fb89c7ca6ec86f7d6dd31adc3c92cfb60c37ea03cbe98
  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:

    • On Windows:


    Run --help or install.bat --help for a list of flags you can pass to this script.

  5. Run gcloud init to initialize the SDK:

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