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

    (x86_64)

    google-cloud-sdk-304.0.0-linux-x86_64.tar.gz 78.7 MB 9cc7ec94855c3cab99211879ab8774a5a16b8de5322be5dd055e8da6d80495d3
    Linux 32-bit

    (x86)

    google-cloud-sdk-304.0.0-linux-x86.tar.gz 76.9 MB c30aafb6fdbbc7b35012e6984302e705f7f9f107e2edee459702f319d61d71da
    macOS 64-bit

    (x86_64)

    google-cloud-sdk-304.0.0-darwin-x86_64.tar.gz 79.0 MB 49b716e74890ad0a4198ca6b100561d927e9c87c7aa0d0df279aa2c0c7d90475
    macOS 32-bit

    (x86)

    google-cloud-sdk-304.0.0-darwin-x86.tar.gz 78.0 MB 16d4f8758a171b2ae90cbaa353a9180a1c887b461352600061670ad94613ba25
    Windows 64-bit

    (x86_64)

    google-cloud-sdk-304.0.0-windows-x86_64.zip 90.8 MB 28f026083159dcd6894d98b9578ff01f08d0a7e04ac7004eead7368b81e21797
    Windows 64-bit

    (x86_64) with Python bundled

    google-cloud-sdk-304.0.0-windows-x86_64-bundled-python.zip 122.0 MB 9fc3dc003c914503f4b854bac4bb331919ccefe1e8211697de439388a89d4d9d
    Windows 32-bit

    (x86)

    google-cloud-sdk-304.0.0-windows-x86.zip 88.9 MB 61e3517204bfb3161ab4c0f55560422ed741dbc78396c519a77e41ce6f0cfd24
    Windows 32-bit

    (x86) with Python bundled

    google-cloud-sdk-304.0.0-windows-x86-bundled-python.zip 117.9 MB 1b17623e32e36c028c7abfa0fb95ad498d1af2c1eb7dcd07f496057b538911c8
  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:

      ./google-cloud-sdk/install.sh
      
    • On Windows:

      .\google-cloud-sdk\install.bat
      

    Run install.sh --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 https://storage.googleapis.com/cloud-sdk-release/<archive_name>.