gcloud
command-line tool, as well as gsutil and bq.
Install the latest version (112.0.0)
- Make sure that Python 2.7 is installed on your system.
- Download one of the following:
- Extract the file to any location on your file system.
- Optional. Run the install script to add SDK tools to your path,
enable command-completion in your
bashshell, and/or and enable usage reporting. - Run gcloud init to initialize the SDK:
| 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 |
./google-cloud-sdk/install.sh
./google-cloud-sdk/bin/gcloud init
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
- Make sure that Python 2.7 is installed on your system.
- Download one of the following:
- Extract the file to any location on your file system.
- Optional. Run the install script to add SDK tools to your path,
enable command completion in your
bashshell, and/or and enable usage reporting. - Run gcloud init to initialize the SDK:
| 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 |
./google-cloud-sdk/install.sh
./google-cloud-sdk/bin/gcloud init
Download the Google Cloud SDK installer. The installer is signed by Google Inc.
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.
- After installation has completed, accept the following options:
- Start Google Cloud SDK Shell
- Run gcloud init
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".