Google Cloud SDK contains tools and libraries that enable you to easily create and manage resources on Google Cloud Platform, including App Engine , Compute Engine , Cloud Storage , BigQuery , Cloud SQL , and Cloud DNS .
Installation and Quick Start
-
Download and install Google Cloud SDK by running the following command in your shell or Terminal:
curl https://sdk.cloud.google.com | bash
(Or, you can download google-cloud-sdk.zip or google-cloud-sdk.tar.gz , unpack it, and launch the
./google-cloud-sdk/install.sh
script.) -
Restart your shell or Terminal.
-
Authenticate to Google Cloud Platform by running
gcloud auth login
.
-
Launch the downloaded
GoogleCloudSDKInstaller.exe
installer and follow the prompts. -
When the installation finishes, open a command prompt (
cmd.exe
) or the Google Cloud SDK Shell from Desktop or Start Menu. -
Authenticate to Google Cloud Platform by running
gcloud auth login
.
Here are the alternative methods for installing Google Cloud SDK.
- Installation on Windows using Cygwin
- Installation from an archive (.zip) on Windows
- Installation from a base Docker image
Installation on Windows using Cygwin
-
Download and install a 32-bit version of Cygwin , following Cygwin's installation instructions . While installing Cygwin, be sure to select
openssh
,curl
and the latest 2.7.x version ofpython
from the package selection screen. -
Launch Cygwin from Start → All Programs → Cygwin → Cygwin Terminal.
-
Download and install Google Cloud SDK by running the following command in your Cygwin Terminal:
curl https://sdk.cloud.google.com | bash
(Or, you can download google-cloud-sdk.zip or google-cloud-sdk.tar.gz , unpack it, and launch the
./google-cloud-sdk/install.sh
script.) -
Restart Cygwin Terminal, and authenticate to Google Cloud Platform by running
gcloud auth login
.
Installation from an archive (.zip) on Windows
-
Download google-cloud-sdk.zip and extract the contents (right-click the file and choose "Extract All...").
-
Launch the
google-cloud-sdk\install.bat
script and follow the installation prompts. -
When the installation finishes, restart the command prompt (
cmd.exe
) and authenticate to Google Cloud Platform by runninggcloud auth login
.
Installation from a base Docker image
-
Get the Google Cloud SDK Docker image :
$ docker pull google/cloud-sdk
-
Authenticate to Google Cloud Platform and save the OAuth 2.0 credentials in
gcloud-config
volume.$ docker run -t -i --name gcloud-config google/cloud-sdk gcloud auth login Go to the following link in your browser: ... Enter verification code: ...
-
Re-use the credentials from
gcloud-config
volume when runninggcloud
commands.$ docker run -t -i --volumes-from gcloud-config google/cloud-sdk gcloud compute instances list
For more information see "google/cloud-sdk" Docker image documentation .
Getting Started
Step 1. Install Cloud SDK
If you have not already installed the Cloud SDK and authenticated, do so by following the steps in the Quick Start above.
Step 2. Get started with a Google Cloud Platform service
With the Cloud SDK command-line interface, you can easily manage your service resources and your development workflow.
-
Manage development workflow common to all services.
To get started, see the gcloud command-line tool. -
Build a web app and host it on Google App Engine.
To get started, follow the walkthrough in the Developer Console to Try Google App Engine Now . -
Launch large compute clusters on Google Compute Engine.
To get started, follow the Compute Engine Quickstart Guide . -
Store vast amounts of data on Google Cloud Storage.
To get started, follow the Hello Google Cloud Storage Tutorial . -
Analyze Big Data in the cloud with Google BigQuery.
To get started, follow the bq Command-Line Tool Quickstart . -
Store and manage data using a MySQL database with Google Cloud SQL.
To get started, see Managing Instances Using the Cloud SDK . -
Make your applications and services available to your users with Google Cloud DNS.
To get started, see Getting started with Google Cloud DNS .
Step 3. Submit questions and give us feedback
Have a question? Ask on StackOverflow using "gcloud" tag , check out our groups page or send a mail to [email protected] .
Found a bug? File it in our issue tracker site. Any feedback is appreciated!
Learn more
Learn more about gcloud, Cloud SDK
command-line tool to manage your development workflow.
|
Learn about App Engine, Compute, Storage,
BigQuery and Cloud SQL tools, bundled with Cloud SDK.
|
See how you can quickly and easily build a
mobile, gaming, or Hadoop solution.
|