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


    google-cloud-sdk-319.0.0-linux-x86_64.tar.gz 86.4 MB 28048af8fe83a1c80a37258d4e6c00edf22bc93edf570fb9bb6a42cca726d4c5
    Linux 32-bit


    google-cloud-sdk-319.0.0-linux-x86.tar.gz 84.6 MB d54faf431374f83b08769e0ef5c126710a8ea1b3243a98ea69911d42742661ed
    macOS 64-bit


    google-cloud-sdk-319.0.0-darwin-x86_64.tar.gz 86.7 MB 5c37fc7199141c63b6e5b1dfc55ed88ae681077fcf2e5fbd9945ad378cdf8d4e
    macOS 32-bit


    google-cloud-sdk-319.0.0-darwin-x86.tar.gz 85.7 MB cbc88f1ac96504343b6f349b9289c22273f4803c64444d2161b015ff6a5c9fd6
    Windows 64-bit

    (x86_64) 99.4 MB 782255d8f2e6478d94f829ae64f0051d8c07a8ba5b36a5c6b763dfbfed9cec31
    Windows 64-bit

    (x86_64) with Python bundled 132.8 MB 09ded5c58398f57e70d602e1a6187f494d00eb3ec04841db18731552812f0222
    Windows 32-bit

    (x86) 97.5 MB 21d3079f2ad7d52591353c50736bf6ea07b13c45286c0250824bd0d3c52dd820
    Windows 32-bit

    (x86) with Python bundled 128.2 MB d04227125d491f08d5b83924c51db5416d6154cb726a91acb81f6e1a580fc19d
  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:


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

      ./google-cloud-sdk/ --screen-reader=true
    • On Windows:


    Run --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<archive_name>.