Display all Google Compute Engine instances in a project. Instances from all zones are listed by default

gcloud

gcloud compute instances list

click the source code to copy