gcloud sql instances

NAME
gcloud sql instances - provide commands for managing Cloud SQL instances
SYNOPSIS
gcloud sql instancesCOMMAND[GCLOUD_WIDE_FLAG]
DESCRIPTION
Provide commands for managing Cloud SQL instances including creating,configuring, restarting, and deleting instances.
GCLOUD WIDE FLAGS
These flags are available to all commands:--help.

Run$gcloud help for details.

COMMANDS
COMMAND is one of the following:
acquire-ssrs-lease
Acquires a SQL Server Reporting Services lease on a Cloud SQL instance.
clone
Clones a Cloud SQL instance.
create
Creates a new Cloud SQL instance.
delete
Deletes a Cloud SQL instance.
describe
Displays configuration and metadata about a Cloud SQL instance.
export
(DEPRECATED) Exports data from a Cloud SQL instance.
failover
Causes a high-availability Cloud SQL instance to failover.
get-latest-recovery-time
Displays the latest recovery time to which a Cloud SQL instance can be restoredto.
import
(DEPRECATED) Imports data into a Cloud SQL instance from GoogleCloud Storage.
list
Lists Cloud SQL instances in a given project.
patch
Updates the settings of a Cloud SQL instance.
point-in-time-restore
Performs a point in time restore for a Cloud SQL instance managed by GoogleCloud Backup and Disaster Recovery (DR) Service.
pre-check-major-version-upgrade
Performs pre-checks for a major version upgrade of a Cloud SQL instance.
promote-replica
Promotes Cloud SQL read replica to a stand-alone instance.
reencrypt
Reencrypts a Cloud SQL CMEK instance.
release-ssrs-lease
Releases a SQL Server Reporting Services lease on a Cloud SQL instance.
reset-ssl-config
Reset SSL materials according to the reset SSL mode.
restart
Restarts a Cloud SQL instance.
restore-backup
Restores a backup of a Cloud SQL instance.
switchover
Switches over a Cloud SQL instance to one of its replicas.
NOTES
These variants are also available:
gcloudalphasqlinstances
gcloudbetasqlinstances

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-11-04 UTC.