1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 18:22:08 +02:00
tldr/pages/common/gcloud.md
Farhad Koushan 0ce0a6c094
gcloud-*: add pages (#11625)
* gcloud-*: add pages

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2024-01-08 19:29:32 +05:30

37 lines
938 B
Markdown

# gcloud
> The official CLI tool for Google Cloud Platform.
> Note: `gcloud` subcommands have their own usage documentation.
> More information: <https://cloud.google.com/sdk/gcloud>.
- List all properties in one's active configuration:
`gcloud config list`
- Login to a Google account:
`gcloud auth login`
- 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 (by default instances from all zones are listed):
`gcloud compute instances list`
- Update a kubeconfig file with the appropriate credentials to point `kubectl` to a specific cluster in Google Kubernetes Engine (GKE):
`gcloud container clusters get-credentials {{cluster_name}}`
- Update all `gcloud` components:
`gcloud components update`
- Display help for a given command:
`gcloud help {{command}}`