Google Cloud SDK Documentation

Google Cloud SDK is a set of tools that you can use to manage resources and applications hosted on Google Cloud Platform. These tools include the gcloud command-line tool, as well as gsutil and bq.

Install the latest version (112.0.0)

Linux
  1. Make sure that Python 2.7 is installed on your system.
  2. Download one of the following:
  3. Platform Package Size SHA1 Checksum
    Linux (x86_64) google-cloud-sdk-112.0.0-linux-x86_64.tar.gz 7.6 MB f7c1f12d0efcf6488ce732d07a34f5fd83b8ef6c
    Linux (x86) google-cloud-sdk-112.0.0-linux-x86.tar.gz 7.6 MB ccf4d97135ee6d1e7100ebd940c7641c70fdf265

  4. Extract the file to any location on your file system.
  5. Optional. Run the install script to add SDK tools to your path, enable command-completion in your bash shell, and/or and enable usage reporting.
  6. ./google-cloud-sdk/install.sh
    
  7. Run gcloud init to initialize the SDK:
  8. ./google-cloud-sdk/bin/gcloud init
    
Debian/Ubuntu

The Cloud SDK is available in package format for installation on Debian and Ubuntu systems. This package contains the gcloud, gsutil and bq commands only.

You can install the Cloud SDK from a Debian/Ubuntu package for all official Ubuntu releases that have not reached end of life, and Debian stable releases from Wheezy forward.

The SDK deb package does not include kubectl or the App Engine extensions required to deploy an application using gcloud commands. If you want these components, you must install them separately.

# Create an environment variable for the correct distribution
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"

# Add the Cloud SDK distribution URI as a package source
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list

# Import the Google Cloud public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

# Update and install the Cloud SDK
sudo apt-get update && sudo apt-get install google-cloud-sdk

# Run gcloud init to get started
gcloud init
Mac OS X
  1. Make sure that Python 2.7 is installed on your system.
  2. Download one of the following:
  3. Platform Package Size SHA1 Checksum
    Mac OS X (x86_64) google-cloud-sdk-112.0.0-darwin-x86_64.tar.gz 7.6 MB 393dbb7c0f9ad7af668326d20ee26efcdf0dbbef
    Mac OS X (x86) google-cloud-sdk-112.0.0-darwin-x86.tar.gz 7.6 MB 82aa831bc9c7b948dd3e853f7f937b0e0e35aa1c

  4. Extract the file to any location on your file system.
  5. Optional. Run the install script to add SDK tools to your path, enable command completion in your bash shell, and/or and enable usage reporting.
  6. ./google-cloud-sdk/install.sh
    
  7. Run gcloud init to initialize the SDK:
  8. ./google-cloud-sdk/bin/gcloud init
    
Windows
  1. Download the Google Cloud SDK installer. The installer is signed by Google Inc.

  2. Launch the installer and follow the prompts. If Python 2.7 is not installed on your system, make sure the option to install Bundled Python is checked.

  3. After installation has completed, accept the following options:

    • Start Google Cloud SDK Shell
    • Run gcloud init

  4. The installer starts a terminal window and runs the gcloud init command.

Note: On Google Compute Engine instances running Windows Server, Internet Explorer is set for Enhanced Security Configuration. This setting prevents you from running the installer above. Disable Enhanced Security Configuration first, restart Internet Explorer and then run the installer. For instructions on disabling Enhanced Security on your Windows Server Instance, open Windows Help and Support and search for "IE ESC".

Send feedback about...

Cloud SDK