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-276.0.0-linux-x86_64.tar.gz 30.6 MB e7e6254fc65d0c67f23f2e5b4846c594065094ff730fe0c4f26bd188ea2b5396
    Linux 32-bit


    google-cloud-sdk-276.0.0-linux-x86.tar.gz 30.3 MB 84fcad3d814eb295bce7c27207febebec90385a2bd2c42fe910b973c95006d91
    macOS 64-bit


    google-cloud-sdk-276.0.0-darwin-x86_64.tar.gz 23.2 MB 2c8b33d4477981e3250376dcdebda4f1612a2ce7191ade68844fdec2e4256dc6
    macOS 32-bit


    google-cloud-sdk-276.0.0-darwin-x86.tar.gz 23.2 MB 113b85f421aec48867ca98cd93994e76b395f5c277bcabab866e4e8188b4c4fa
    Windows 64-bit

    (x86_64) 165.4 MB ebcb1f60bfd6c60bfc5549220d6b770a972ec0a5e96accafb26f0b079948fc69
    Windows 64-bit

    (x86_64) with Python bundled 203.8 MB 689dd688eddd6ced610b550f0b5275b488d6f44784cb0c022a0026395ff93c19
    Windows 32-bit

    (x86) 165.5 MB 6d47d82c01f1b80db1037b1e87dde31836fdbe18b7b7f062b75819e6c91a29e7
    Windows 32-bit

    (x86) with Python bundled 199.8 MB 298eeb393de567ec6b8b199185733bced4a7ca11721520e7354b5c151c7cfc03
  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>.

Оцените, насколько информация на этой странице была вам полезна:

Оставить отзыв о...

Текущей странице
Cloud SDK Documentation