gcloud

gcloud

TLDR

List all properties in one's active configuration

>_ gcloud config list
copy

Login to Google account

>_ gcloud auth login
copy

Set the active project

>_ gcloud config set project [project_name]
copy

SSH into a virtual machine instance

>_ gcloud compute ssh [user]@[instance]
copy

Display all Google Compute Engine instances in a project. Instances from all zones are listed by default

>_ gcloud compute instances list
copy

Update a kubeconfig file with the appropriate credentials to point kubectl to a specific cluster in Google Kubernetes Engine

>_ gcloud container clusters get-credentials [cluster_name]
copy

Update all gcloud CLI components

>_ gcloud components update
copy

Show help for a given command

>_ gcloud help [command]
copy

Copied to clipboard
free 100$ digital ocean credit