The gcloud utility is used to interact with the rest of the services on the Google Cloud Platform, other than BigQuery and Google Cloud Storage. The commands in the gcloud utility are grouped for each service. The following are the service groups for some of the services on the Google Cloud Platform:
Service group |
Google Cloud service |
App |
App Engine standard and flexible environment |
Compute |
Compute Engine to manage virtual machines |
Container |
Container Engine to manage containers and clusters |
Dataflow |
Manage Cloud Dataflow services for ETL and data processing |
Dataproc |
Manage Cloud Dataproc service which consists of Apache Hadoop, Spark, Pig, and Hive |
Datastore |
Manage Cloud Datastore service which creates entities on a NoSQL database |
SQL |
Manage Cloud SQL service which consists of MySQL or PostgreSQL databases |
To view the list of commands available in each service group, run the help command shown as follows. The following command will show the list of command groups available for the Cloud SQL service:
gcloud help sql
To see the list of commands for each group, type the command shown as follows. The following command will show the list of commands available under the backups group in the Cloud SQL:
gcloud help sql backups
To see the options in a command, type the command shown as follows. The following code will show the details about the list command in the Cloud SQL service, which is used to get a list of backups available for the Cloud SQL instance:
gcloud help sql backups list