1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-02 06:35:37 +02:00
tldr/pages/common/gcloud.md
Vitor Henrique 61405c6e0e
pages*: fix small typos (#11850)
* pages*: fix small typos

* pages/*: make help and version commands consistent

* pages/*: follow "path/to/file" pattern

* nop: generic display help wording
2023-12-27 12:11:30 +05:30

36 lines
865 B
Markdown

# gcloud
> The official CLI tool for Google Cloud Platform.
> More information: <https://cloud.google.com/sdk/gcloud>.
- List all properties in one's active configuration:
`gcloud config list`
- Log in to 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. 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`
- Display help for a given command:
`gcloud help {{command}}`