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-278.0.0-linux-x86_64.tar.gz 56.0 MB 696773e338682cec8f4b36760de8d6e3bfd5bc126b9504d35aecfe9034e0dffd
    Linux 32-bit


    google-cloud-sdk-278.0.0-linux-x86.tar.gz 30.5 MB 2d00025091fbb56f245b97468b797155dc7b125f9bc33a38524c29e0983a2723
    macOS 64-bit


    google-cloud-sdk-278.0.0-darwin-x86_64.tar.gz 48.7 MB 8eb7d8d571457c87bd8013e4db61f709f0e0076f6d145baf4acd00ad576acf34
    macOS 32-bit


    google-cloud-sdk-278.0.0-darwin-x86.tar.gz 23.5 MB 568b5e820514ca8673afa24c4bfe195ccb1af3ac97cd1b3634fc9da888a9188d
    Windows 64-bit

    (x86_64) 232.3 MB ac7f0ed6df5de90f0a79d41b5c8558a3287e1614a214c46fb97bcf7574e3f40c
    Windows 64-bit

    (x86_64) with Python bundled 270.7 MB 8d56f2ea0d5844f1ba0aaf3cbf3c055fcc1e6852486a336a29be003ea1929103
    Windows 32-bit

    (x86) 166.8 MB d1ea75dcb3032445914c835671a2524b3890edd6d8c96caa1458df8e2317e344
    Windows 32-bit

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

    • On Windows:


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