- NAME
-
- gcloud sql - create and manage Google Cloud SQL databases
- SYNOPSIS
-
-
gcloud sqlGROUP|COMMAND[GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
- The gcloud sql command group lets you create and manage Google Cloud SQL
databases.
Cloud SQL is a fully-managed database service that makes it easy to set up, maintain, manage, and administer your relational databases in the cloud.
More information on Cloud SQL can be found here: https://cloud.google.com/sql and detailed documentation can be found here: https://cloud.google.com/sql/docs/
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--help.Run
$ gcloud helpfor details. - GROUPS
-
is one of the following:GROUP-
backups - Provide commands for working with backups of Cloud SQL instances.
-
databases - Provide commands for managing databases of Cloud SQL instances.
-
export - Provide commands to export Cloud SQL instances.
-
flags - Provide a command to list flags.
-
import - Provides commands to import Cloud SQL instances.
-
instances - Provide commands for managing Cloud SQL instances.
-
operations - Provide commands for working with Cloud SQL instance operations.
-
ssl - Provide commands for managing SSL certificates of Cloud SQL instances.
-
ssl-certs -
(DEPRECATED)Provide commands for managing SSL certificates of Cloud SQL instances. -
tiers - Provide a command to list tiers.
-
users - Provide commands for managing Cloud SQL users.
-
- COMMANDS
-
is one of the following:COMMAND-
connect - Connects to a Cloud SQL instance.
-
generate-login-token - Generate an IAM login token for Cloud SQL.
-
reschedule-maintenance - Reschedule a Cloud SQL instance's maintenance.
-
- NOTES
- These variants are also available:
gcloud alpha sqlgcloud beta sql
gcloud sql
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.

