* pages/*: fix small typos * Update ssh-copy-id.md Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * ansible-inventory: fix typo * Update pages/linux/zathura.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * gcloud: fix typo * fdesetup: mark as placeholder * icalbuddy: use general placeholder * ip: make it a placeholder * git-svn: fix typo * pages/*: fix typos * kubectl-get: add mnemonics and long options * kubectl-describe: add mnemonics and long options * pip-install: use short option * Update icalbuddy.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
37 lines
862 B
Markdown
37 lines
862 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`
|
|
|
|
- Show help for a given command:
|
|
|
|
`gcloud help {{command}}`
|