Global Flags Discovering Commands: Cheat Sheet
Global Flags Discovering Commands: Cheat Sheet
Cheat sheet
Some flags are available throughout the gcloud experience, like: The gcloud command-line tool is a tree; non-leaf nodes are
command groups and leaf nodes are commands. (Also, tab
--help completion works for commands and resources!)
For when in doubt Most gcloud commands follow the following format:
https://cloud.google.com/sdk/gcloud/reference/
For a list of projects created on or after 15 January 2018, gcloud config set
sorted from oldest to newest, presented as a table with project Define a property (like compute/zone) for current configuration
number, project id and creation time columns with dates and
times in local timezone gcloud config get-value
Fetch value of a gcloud CLI property
gcloud compute instances list
--filter="labels.my-label:*" gcloud config list
--limit=10 Display all the properties for the current configuration
For a list of ten Compute Engine instances with a label my-label
(of any value) https://cloud.google.com/sdk/gcloud/reference/ gcloud config configurations create
Create a new named configuration
P ERSONALIZATION (CONT.) IDENTIT Y & ACCESS MANAGEMENT (IAM) APP ENGINE
gcloud config configurations list gcloud iam list-grantable-roles gcloud app deploy
Display a list of all available configurations List IAM grantable roles for a resource Deploy your app’s code and configuration to App Engine server
gcloud config configurations activate gcloud iam roles create gcloud app versions list
S witch to an existing named configuration C reate a custom role for a project or org List all versions of all services deployed to the App Engine
server
CREDENTIALS gcloud iam service-accounts create
C reate a service account for a project gcloud app bro se w
Display a virtual machine (VM) instance’s details Display info about a Cloud S L instance backup
Q
List all VM instances in a project Ex port data from a Cloud S L instance to a S L file
Q Q