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-315.0.0-linux-x86_64.tar.gz 86.1 MB ea01c0e8bcb43922504171324d49be2ee3dd5665536779ca653fe794b1da4060
    Linux 32-bit


    google-cloud-sdk-315.0.0-linux-x86.tar.gz 84.4 MB fe0e831b9017bf4a6de60f95fd027c9600b097bf1ff352b67e861097ce862d65
    macOS 64-bit


    google-cloud-sdk-315.0.0-darwin-x86_64.tar.gz 86.5 MB 95443eb20d212890e9b811548207fef2c44bad74b83affe2442a8e83248d75d2
    macOS 32-bit


    google-cloud-sdk-315.0.0-darwin-x86.tar.gz 85.5 MB de1b9ce2f5170dcd0e48fb688df6c9c6d7b7247bee92204b870b1675bf85b50c
    Windows 64-bit

    (x86_64) 99.1 MB c9b283c9db4ed472111ccf32e6689fd467daf18ce3a77b8e601f9c646a83d86b
    Windows 64-bit

    (x86_64) with Python bundled 132.5 MB 4e9b41cdbece7e800825119eb2d61cebc5c998ccc46fc73ca52db63d2788b70c
    Windows 32-bit

    (x86) 97.2 MB ee2a74f2344ee9f52bbc325734cd7c0990e436557d5dd64daa0c9305f2464589
    Windows 32-bit

    (x86) with Python bundled 127.9 MB 370ca557896deb99963ba573ad2faee5662ae9a4055ad655180db20c2fb413e8
  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>.