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-282.0.0-linux-x86_64.tar.gz 56.6 MB db2fd176a998381ef937bd9f9e83b16eadff864111255d771976d654c961fc95
    Linux 32-bit

    (x86)

    google-cloud-sdk-282.0.0-linux-x86.tar.gz 54.8 MB 4885483808a72bf0746a00bbd10c9cc7e846aacdc178311b05946d878806a32f
    macOS 64-bit

    (x86_64)

    google-cloud-sdk-282.0.0-darwin-x86_64.tar.gz 49.3 MB 2b6f96113a9a5cca3ef96ed0e8ba1f7754da1851e623aa2ae933b917bf713738
    macOS 32-bit

    (x86)

    google-cloud-sdk-282.0.0-darwin-x86.tar.gz 48.2 MB 40a95817a046249e0c8394d33d53b4ddbf75c94fff5e7415c3ba76b3c9d317c2
    Windows 64-bit

    (x86_64)

    google-cloud-sdk-282.0.0-windows-x86_64.zip 237.5 MB fae86285f666b5d71cff80ca04bf4ded92e99feb7c13331cdc328dfd4a6b4a21
    Windows 64-bit

    (x86_64) with Python bundled

    google-cloud-sdk-282.0.0-windows-x86_64-bundled-python.zip 275.8 MB 1872a193ce77baede69ce939270bcd47f2cbc6d281395f9ce8d2c95c76128276
    Windows 32-bit

    (x86)

    google-cloud-sdk-282.0.0-windows-x86.zip 229.5 MB 01ab5aff70595bba2c3baca18fd47f381be730eca4f0b985a7a9ac3044eed77a
    Windows 32-bit

    (x86) with Python bundled

    google-cloud-sdk-282.0.0-windows-x86-bundled-python.zip 263.8 MB d063029f461ea8dae11f7235e180944434d5f345c23df04c53895e5a91ee2687
  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>.