DEV Community 👩‍💻👨‍💻

DEV Community 👩‍💻👨‍💻 is a community of 963,673 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Shibu N
Shibu N

Posted on

GCP gcloud CLI command Structure Overview

The gcloud CLI is a set of tools used to create and manage Google Cloud Resources. By using the gcloud CLI, you can create Compute Engine Virtual Machines, VPC, Google Kubernetes Engine clusters, Dataproc clusters and jobs,Cloud SQL instances, App Engine Apps, etc.

Most gcloud commands follow the following format:

gcloud + release level(optional) + component + entity +
operation + positional args + flags


gcloud compute instances create example-instance-1


Release Level refers to the command's release status. For example alpha, beta, GA.

Component refers to different Google Cloud services.For example compute for compute engine, app for app engine.

Entity refers to the plural form of an element or collection of elements under a component. For example instances, disks, images, zones, regions.

Operation refers to the imperative verb form of the operation to be performed on the entity. For example describe, list, create, update, delete, import, export, copy, run, add, remove.

Positional args refer to the required, order-specific arguments needed to execute the command.

Flags refer to the additional arguments, --flag-name(=value),
passed in to the command after positional args. For example --machine type=MACHINE_TYPE and are --preemptible
optional flags for gcloud compute instances create.

For more info, visit

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.