gcloud compute
Create, run, and manage VMs on Google Cloud infrastructure. More information: https://docs.cloud.google.com/sdk/gcloud/reference/compute.
- List Compute Engine zones:
gcloud compute zones list
- Create a VM instance:
gcloud compute instances create
- Display a VM instance's details:
gcloud compute instances describe
- List all VM instances in a project:
gcloud compute instances list
- Create a snapshot of a persistent disk:
gcloud compute disks snapshot --snapshot-names
- Display a snapshot's details:
gcloud compute snapshots describe
- Delete a snapshot:
gcloud compute snapshots delete
- Connect to a VM instance using SSH:
gcloud compute ssh
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
