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-316.0.0-linux-x86_64.tar.gz 86.2 MB 96a0b75474dbfa9f3d46dcdec7a4d68a664cb7d57fade5710fe88b1fdf6babb3
    Linux 32-bit


    google-cloud-sdk-316.0.0-linux-x86.tar.gz 84.4 MB 675d9d2066b26291db03f7f0cd17b65970096f3950ec641bd4e201526b55e87c
    macOS 64-bit


    google-cloud-sdk-316.0.0-darwin-x86_64.tar.gz 86.5 MB a478e4d66b75d686cbbe951ec6aa43ccd57d946461554af385c2dc6887b6a5a9
    macOS 32-bit


    google-cloud-sdk-316.0.0-darwin-x86.tar.gz 85.5 MB 725989d748f319e3518024d2c551f9d8f62c29e9a5f6ee97aaf9fdcbd1afb10b
    Windows 64-bit

    (x86_64) 99.2 MB 242fceef24c8337d152d81f498f76723e36e6c310046ec00ab76ab6487490eed
    Windows 64-bit

    (x86_64) with Python bundled 132.6 MB c7c4fcf604b3cae41755528f7c171bcc60a3679ef630701c4a476071d0ab3125
    Windows 32-bit

    (x86) 97.3 MB d68f53f347b85471a0ab8749d0ec58ffb67b529f9441d73e87c1d4906e7ce128
    Windows 32-bit

    (x86) with Python bundled 128.0 MB 040fa04ab6768cf673550a5e8556c6c82ef2a713a7e82fe92dbd88ef86d06872
  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, including those that can run the installation non-interactively.

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