Google Cloud CLI (gcloud) · Compute Engine
Create a VM
Create a small Debian VM in a zone.
gcloud compute instances create my-vm --zone us-central1-a --machine-type e2-small --image-family debian-12 --image-project debian-cloud
Official Google Cloud CLI (gcloud) documentation
More compute engine commands
- List VM instances
- Connect to a VM with SSH
- Stop a VM
- Delete a VM
- Copy a file to a VM
- Allow traffic to a port
All compute engine commands · Google Cloud CLI (gcloud) cheatsheet