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-272.0.0-linux-x86_64.tar.gz 30.1 MB 1920b14a985e12e8658607685aec9abed8f8dde499d773bc1ca6f0abe1b25425
    Linux 32-bit

    (x86)

    google-cloud-sdk-272.0.0-linux-x86.tar.gz 29.7 MB 5b78262ba7e44531ab48b354f4771cc5813d978e564b5a7fecb278d31cf75148
    macOS 64-bit

    (x86_64)

    google-cloud-sdk-272.0.0-darwin-x86_64.tar.gz 22.7 MB 63079aab3bd6714a1d819fdde798f30e2ac306d13b541516ac2b5b660f69cc9f
    macOS 32-bit

    (x86)

    google-cloud-sdk-272.0.0-darwin-x86.tar.gz 22.7 MB 90d368e827c8496597c60d34c2b256e6931d5dcab4a035ce7013fa90c89241b8
    Windows 64-bit

    (x86_64)

    google-cloud-sdk-272.0.0-windows-x86_64.zip 162.3 MB 73d42d190e6e9975719d5305bc9db63cf41c25d05cc93d4b1b41ae28e1d34c7e
    Windows 64-bit

    (x86_64) with Python bundled

    google-cloud-sdk-272.0.0-windows-x86_64-bundled-python.zip 200.7 MB 684143b295099fdd8d4fece598095564712c04c7a95a87245c0e936f86e51a9a
    Windows 32-bit

    (x86)

    google-cloud-sdk-272.0.0-windows-x86.zip 162.4 MB db22152022603888cf81e88f87cf1323029285d2b0b069f96fbaf67c5b0c7c1d
    Windows 32-bit

    (x86) with Python bundled

    google-cloud-sdk-272.0.0-windows-x86-bundled-python.zip 196.7 MB 44fb0811e49c7eb8b99a99c25458df02721336eb2b7e91075e2447d5b6170ca2
  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>.

Oliko tästä sivusta apua? Kerro mielipiteesi

Palautteen aihe:

Tämä sivu
Cloud SDK Documentation