From 411e8af5b4c5329f7bc098957852bb17c0665032 Mon Sep 17 00:00:00 2001 From: Danny Rosen Date: Mon, 28 May 2018 14:25:10 -0400 Subject: [PATCH] gcloud: add page (#2126) --- pages/common/gcloud.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pages/common/gcloud.md diff --git a/pages/common/gcloud.md b/pages/common/gcloud.md new file mode 100644 index 000000000..1b29ab191 --- /dev/null +++ b/pages/common/gcloud.md @@ -0,0 +1,31 @@ +# gcloud + +> The official CLI tool for Google Cloud Platform. + +- List all properties in one's active configuration: + +`gcloud config list` + +- Set the active project: + +`gcloud config set project {{project_name}}` + +- SSH into a virtual machine instance: + +`gcloud compute ssh {{user}}@{{instance}} ` + +- Display all Google Compute Engine instances in a project. Instances from all zones are listed by default: + +`gcloud compute instances list` + +- 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}}` + +- Update all gcloud CLI components: + +`gcloud components update` + +- Show help for a given command: + +`gcloud help {{command}}`