This page contains instructions for choosing and maintaining a Cloud SDK installation.
Cloud SDK runs on Linux, macOS, and Windows. Cloud SDK requires Python. Supported versions are 3.5 or higher, and 2.7.9 or higher. Some tools bundled with Cloud SDK have additional requirements. For example, Java tools for Google App Engine development require Java 1.7 or later.
Before you begin
Sign in to your Google Account.
If you don't already have one, sign up for a new account.
In the Cloud Console, on the project selector page, select or create a Cloud project.
Make sure that billing is enabled for your Google Cloud project. Learn how to confirm billing is enabled for your project.
Depending on your needs, use one of the following methods to install Cloud SDK:
- Using Cloud SDK with scripts or Continuous Integration/Deployment? Download a versioned archive for a non-interactive installation of a specific version of Cloud SDK.
- Running Debian/Ubuntu? Use
apt-getfor the latest release in package format.
- Running Red Hat Enterprise Linux 7/CentOS 7? Use
yumfor the latest release in package format.
- Need to run Cloud SDK as a Docker image? Use the Cloud SDK Docker image for the latest release (or specific version) of Cloud SDK.
- For Windows and macOS interactive installations, and all other use cases, run the interactive installer to install the latest release of Cloud SDK.
What's in the box?
All of the installation methods above install the default Cloud SDK components,
bq command-line tools.
Managing an installation
After you have installed Cloud SDK using one of the methods above, you can use
commands in the
gcloud components command
group to manage your installation. This
includes viewing installed components, adding and removing components, and
upgrading to a new version (or downgrading to a specific version) of Cloud SDK.
Older versions of Cloud SDK
If you'd need an older version of Cloud SDK to revert to, you can find all previous releases available to download from this archive.