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

    Additionally, for macOS, to check your machine hardware name (x86_64, arm64, or x86), run uname -m.

  2. Download the appropriate archive compatible with your version:

    Platform Package Size SHA256 Checksum
    Linux 64-bit

    (x86_64)

    google-cloud-sdk-350.0.0-linux-x86_64.tar.gz 86.4 MB 861a02dcaed5eb8b4b2fe39640355700af322c1e487226e7bf19356496e28cee
    Linux 32-bit

    (x86)

    google-cloud-sdk-350.0.0-linux-x86.tar.gz 83.7 MB 37d34ec5072829ee4aac1159c505ac6d91f9605169d47b316c8f4329f70ae87e
    macOS 64-bit

    (x86_64)

    google-cloud-sdk-350.0.0-darwin-x86_64.tar.gz 86.9 MB d3b995a4b8d0d5a2181d98298ca31020f406c323bc51889a4e3a7aefc346963e
    macOS 64-bit

    (arm64)

    google-cloud-sdk-350.0.0-darwin-arm.tar.gz 86.8 MB 8af64643437114658c58d2fa75c58ee830737e04268a650f2992972b5440f1f3
    macOS 64-bit with bundled Python

    (x86_64)

    google-cloud-sdk-350.0.0-darwin-x86_64-bundled-python.tar.gz 128.8 MB 0bfbb35e7d56f4f6b923f4ee9cb9f1c468ddce90dad12c5511154a92a2509422
    macOS 32-bit

    (x86)

    google-cloud-sdk-350.0.0-darwin-x86.tar.gz 90.7 MB a20157ac9974b02b329d53fb1de0d79b6a5fc97844e71f47e22b59aa5fb652d5
    Windows 64-bit

    (x86_64)

    google-cloud-sdk-350.0.0-windows-x86_64.zip 101.5 MB 0c0f3a71aebb3aa0ba5371f0cc27f805e11370efe75c06ffb443768489c58c07
    Windows 64-bit

    (x86_64) with Python bundled

    google-cloud-sdk-350.0.0-windows-x86_64-bundled-python.zip 136.1 MB 00a1876b4cb5a498476916caccffeb6f7f7fb8e9c6b427806813720e78a799e3
    Windows 32-bit

    (x86)

    google-cloud-sdk-350.0.0-windows-x86.zip 99.7 MB 6d4db501af83499a3fb6a6b2eb2f57b8e428acaa8e31d1d3e83cef814a095242
    Windows 32-bit

    (x86) with Python bundled

    google-cloud-sdk-350.0.0-windows-x86-bundled-python.zip 131.5 MB 8b25035e8758a49240d3ac00208f35b2c48d22b0bdba087ade2bc9cf213ddcf1
  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
      

      To run the install script with screen reader mode turned on:

      ./google-cloud-sdk/install.sh --screen-reader=true
      
    • 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, including those that can run the installation non-interactively.

  5. Run gcloud init to initialize the SDK.

    • For Linux or macOS:

      ./google-cloud-sdk/bin/gcloud init

    • For Windows:

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

Try it for yourself

If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.

Get started for free