gcloud compute

The gcloud command-line tool lets you manage your Compute Engine resources, using the gcloud compute command group. gcloud compute is an alternative to using the Compute Engine API.

The gcloud tool is part of the Cloud SDK and is a unified command-line tool that includes features like statement autocompletion, in-place updating, command-line help, human-readable and machine-parsable output formats, and integration with Cloud SDK.

If you have never used Compute Engine, get started with either the Linux quickstart or the Windows quickstart.

Before you begin

  • If you want to run gcloud compute in a command prompt, install, update, and initialize the Cloud SDK.
  • If you don't have a command prompt readily available, try using gcloud compute in Cloud Shell. Cloud Shell is automatically installed, updated, and initialized with the latest Cloud SDK.