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-305.0.0-linux-x86_64.tar.gz 78.8 MB afed6638d71377e45242f77a972d1963722249cf46b9a23021390790b01e0de6
    Linux 32-bit


    google-cloud-sdk-305.0.0-linux-x86.tar.gz 77.0 MB 3c717ea0d3306ba36b8f38c5b5b0a2add548415d1e29319b9497149798257a9b
    macOS 64-bit


    google-cloud-sdk-305.0.0-darwin-x86_64.tar.gz 79.2 MB b86dbe3c0f8b0510c1fe2719818efd8e46396b8be9083e1cedae12e787f3aeea
    macOS 32-bit


    google-cloud-sdk-305.0.0-darwin-x86.tar.gz 78.2 MB ede4491fc7ec59d491a40623f1e39be3d1d48f36ebb9fd5a8085acbe63a6a9ab
    Windows 64-bit

    (x86_64) 91.0 MB eb5f5500f93497a2f9ce9b803abd8f2d3f44e4c7feb5417b0e42001fb850d749
    Windows 64-bit

    (x86_64) with Python bundled 124.4 MB 786cb2af7470d2183b15a0ed877074161b961145d0cea62f5062088b41ae4160
    Windows 32-bit

    (x86) 89.1 MB 0ca76b8f553ed182db2257cfb503825e91951a1829aa4a5f7bd1b9bb1912de75
    Windows 32-bit

    (x86) with Python bundled 119.8 MB dcd1dae643ef751e68e82045a985b30a6d67bc189fc13c89a7cd3b2c94122b7f
  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>.