The Cloud SDK is a set of tools for Cloud Platform. It contains gcloud, gsutil, and bq, which you can use to access Google Compute Engine, Google Cloud Storage, Google BigQuery, and other products and services from the command-line. You can run these tools interactively or in your automated scripts.1
Table of contents
- gcloud - manage Google Cloud Platform resources and developer workflow
- Configuring Google Cloud SDK for multiple projects
Quickstart for Linux - This page shows how to install the Google Cloud SDK, initialize it and run core gcloud commands from the command-line.
Quickstart for macOS - This page shows how to install the Google Cloud SDK, initialize it, and run core gcloud commands from the command-line.
The gcloud CLI manages authentication, local configuration, developer workflow, and interactions with the Google Cloud Platform APIs.2
Use the gcloud init command to perform several common SDK setup tasks. These include authorizing the SDK tools to access Google Cloud Platform using your user account credentials and setting up the default SDK configuration.4
gcloud init launches an interactive Getting Started workflow for gcloud. It performs the following setup steps:5
- Authorizes gcloud and other SDK tools to access Google Cloud Platform using your user account credentials, or lets you select from accounts whose credentials are already available.
- Sets properties in a gcloud configuration, including the current project and the default Google Compute Engine region and zone.
$ gcloud init
The gcloud config command group lets you set, view and unset properties used by Cloud SDK.6
$ gcloud config configurations list
$ gcloud config configurations activate default
$ gcloud config list
gcloud info displays information about the current gcloud environment.7
$ gcloud info
$ gcloud info --run-diagnostics
$ gcloud info --show-log