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-360.0.0-linux-x86_64.tar.gz 92.3 MB 6192cb2791f592da6d372888dbd7ee81d3d91f255d844ab5fc518fc97e453648
    Linux 32-bit

    (x86)

    google-cloud-sdk-360.0.0-linux-x86.tar.gz 89.6 MB aabf563e3f9b467b123f6ee2bff0017eaec5c154458c623ec8a59306d72194ea
    macOS 64-bit

    (x86_64)

    google-cloud-sdk-360.0.0-darwin-x86_64.tar.gz 92.8 MB b900370f1c05f2dbf819aa257c545790ef087f858f0e438eac20ed0bed375e32
    macOS 64-bit

    (arm64)

    google-cloud-sdk-360.0.0-darwin-arm.tar.gz 92.7 MB 7d40e2282958d713ebb5ce8fa7c28ccb4787f2cd304c2ee1f5bf9c91f4f00b5e
    macOS 32-bit

    (x86)

    google-cloud-sdk-360.0.0-darwin-x86.tar.gz 96.6 MB 4159f7419b8abe7de7bddb88ced85bf547cbc49c488801b3f06ee9188474a33f
    Windows 64-bit

    (x86_64)

    google-cloud-sdk-360.0.0-windows-x86_64.zip 109.3 MB 71480cad1b8b522cc34196b1d5677df93d8bcef1cf23a15e592444f8a438329c
    Windows 64-bit

    (x86_64) with Python bundled

    google-cloud-sdk-360.0.0-windows-x86_64-bundled-python.zip 143.9 MB 4b2567f8e0e86342c6ffa575d53cdf2625f5a2ca0cae9ad150aa53e30549264e
    Windows 32-bit

    (x86)

    google-cloud-sdk-360.0.0-windows-x86.zip 107.6 MB 95e1233c3239ee4463fc4a6138460ad5ce6ee62bb8353ce8b2c5d998a761da53
    Windows 32-bit

    (x86) with Python bundled

    google-cloud-sdk-360.0.0-windows-x86-bundled-python.zip 139.3 MB 11e252a0795839f06ff3303ce2076d4fc84a7657a9e7512cbc5024ac7d2879b6
  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