mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 16:13:31 +02:00
gcloud: add page (#2126)
This commit is contained in:
parent
5f8927aebc
commit
411e8af5b4
1 changed files with 31 additions and 0 deletions
31
pages/common/gcloud.md
Normal file
31
pages/common/gcloud.md
Normal file
|
@ -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}}`
|
Loading…
Add table
Reference in a new issue