-
Command Line Interface
-
Overview
- gcloud is the primary CLI tool to create and manage Google Cloud resources
- gcloud CLI is a part of the Google Cloud SDK
- gcloud commands are organized into a nested hierarchy of command groups
-
Installation
- Download the Cloud SDK, launch the installer
- Install from versioned archives
- Use Docker image
- Install a Snap package
-
Setup
- Initialize Cloud SDK
- Authorize Cloud SDK tools
- Use "gcloud components install" command to install alpha and beta components
- Configure Cloud SDK for use behind a proxy/firewall
- Properties are settings that govern the behavior
- Global flags and command flags that have same effect as SDK properties
-
Usage
- gcloud init: Initialize, authorize, and configure the gcloud tool
- gcloud version: Display version and installed components
- gcloud components install: Install specific components
- gcloud components update: Update your Cloud SDK to the latest version
- gcloud config set project: Set a default Google Cloud project to work on
- gcloud info: Display current gcloud tool environment details
- gcloud beta interactive: to enter interactive mode