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're scripting with the gcloud tool or another Cloud SDK component and want to make sure that your scripts don't break as the result of a Cloud SDK update.
    • You're 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're performing automated deployments of Cloud SDK to many machines that must be in sync.
    • You're 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-358.0.0-linux-x86_64.tar.gz 92.2 MB a617718d7284e8198e866a93b85e62f16d5662be6ac3a887f9c72f7f33cb823b
    Linux 32-bit

    (x86)

    google-cloud-sdk-358.0.0-linux-x86.tar.gz 89.5 MB ca11c065bce2a689ac24649c032567697e270c38b72afe416e8eded2b1c97df5
    macOS 64-bit

    (x86_64)

    google-cloud-sdk-358.0.0-darwin-x86_64.tar.gz 92.7 MB 7986b36e8457ca700d47739f9eb2731ca6c2b0cc91bc0fa0a4e4ab64692e82b0
    macOS 64-bit

    (arm64)

    google-cloud-sdk-358.0.0-darwin-arm.tar.gz 92.6 MB 5ba8c3502616849f190c552333e4abf71ff7f2581810b5911f6887bd900cead5
    macOS 32-bit

    (x86)

    google-cloud-sdk-358.0.0-darwin-x86.tar.gz 96.4 MB 3ce98184f4c21bebca88af9e6102eed8eac36ca45d2c1ebdeb9b4e90ba9f58f9
    Windows 64-bit

    (x86_64)

    google-cloud-sdk-358.0.0-windows-x86_64.zip 109.1 MB 779748365300d1bc34d16ebdcb75b6b43e44550429151e23048befadac36d8ae
    Windows 64-bit

    (x86_64) with Python bundled

    google-cloud-sdk-358.0.0-windows-x86_64-bundled-python.zip 143.8 MB 63eec2605f9669251a12e11b32d509233333f7749b01f20add58d59b93d3bb32
    Windows 32-bit

    (x86)

    google-cloud-sdk-358.0.0-windows-x86.zip 107.4 MB 915c2e294ad39391d9ffaf88b316e224038792e91874e05971c547a8e1c09325
    Windows 32-bit

    (x86) with Python bundled

    google-cloud-sdk-358.0.0-windows-x86-bundled-python.zip 139.2 MB cc6c8d32d83423f56f4bd1d03cd3af85da462f3a4527a7a34792433a1bb5b4ba
  3. Extract the contents of the file to any location on your file system. Preferably, this is your Home folder.

  4. To add Cloud SDK tools to your path, run the install script from the root of the folder you extracted. Running this script also generates 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 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