Cloud Shell is a terminal that runs in your browser, with the Google Cloud CLI already installed and already signed in as your account. That means you can create a VM by typing one command, with nothing to download and no setup on your own computer.
The command itself is short, but each part of it is a decision. The name identifies the VM, the machine type sets its power and price, the disk size sets its storage, and the zone sets where it runs. If you do not choose these, gcloud fills them in with defaults that may not be what you wanted, so it is worth knowing which defaults you are accepting.
This walks through opening Cloud Shell and creating a VM with one command, then covers how to choose the zone and image yourself, how to create several VMs at once, how to connect, and how to delete the VM.
Prerequisites:
Open Cloud Console.
Click on Activate Cloud Shell.

The first time you open it, Cloud Shell asks you to continue. Click Continue and wait for the terminal to start.

Type this command, replacing the placeholders with your own values. The flags have two hyphens, and no space after the equals sign:
gcloud compute instances create VM_NAME –zone=ZONE –machine-type=MACHINE_TYPE –boot-disk-size=DISK_SIZE
For example:
gcloud compute instances create my-vm –zone=us-central1-a –machine-type=e2-medium –boot-disk-size=20GB
The original page wrote the flags with an en dash and angle brackets, which does not work. Giving the zone yourself skips the question below. If you leave it out, gcloud proposes a zone and asks Did you mean that zone. Press y to accept it, or n to choose another from a numbered list.

A VM name can use lowercase letters, numbers, and hyphens only. No capital letters and no other symbols, as the original page says. The name also has to begin with a lowercase letter. Google applies the RFC1035 rules to instance names.
gcloud compute instances create my-vm –zone=us-central1-a –machine-type=e2-medium –image-family=debian-12 –image-project=debian-cloud –boot-disk-size=20GB
To see which images exist, run gcloud compute images list. The gcloud Commands for Working With Google Cloud guide in this series shows how to narrow that long list.
Give more than one name in the same command and gcloud creates them all with the same settings, as in Google’s reference example:
gcloud compute instances create vm-1 vm-2 vm-3 –zone=us-central1-a
Remember that each VM bills separately, so three VMs cost three times as much.
After the command finishes, it prints a line for your VM showing its name, zone, machine type, addresses, and status. Back in the console, open Compute Engine, then VM instances, and press the refresh button. The VM you created is listed. You can also check from Cloud Shell:
gcloud compute instances list

From Cloud Shell, you can open an SSH session with one command, and gcloud sets up the SSH keys for you, which avoids the key problems described in the Creation of SSH Key Using PuTTY guide in this series:
gcloud compute ssh VM_NAME –zone=ZONE
A VM bills from the moment it is created. A stopped VM generally stops billing for compute, but its disk still costs money, and a deleted VM stops billing for both, since its boot disk is deleted with it by default. When you finish practising, delete the VM:
gcloud compute instances delete VM_NAME –zone=ZONE
Check the name and zone before you confirm, because deleting cannot be undone. The Deleting an Instance Using the Developers Console guide in this series shows the console route.
That covers creating a VM from Cloud Shell, with the broken command fixed and the defaults explained. To go further, explore Prwatech’s Google Cloud training program, which includes placement assistance.