- NAME
-
- gcloud alpha sql blue-green-deployments create - creates a Cloud SQL blue-green deployment
- SYNOPSIS
-
-
gcloud alpha sql blue-green-deployments createDEPLOYMENT--source-instance=SOURCE_INSTANCE[--async] [--description=DESCRIPTION] [--region=REGION] [--target-database-version=TARGET_DATABASE_VERSION] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)Creates a Cloud SQL blue-green deployment. - EXAMPLES
-
To create a blue-green deployment named
my-deploymentfrom source instancemy-instancein regionus-central1:gcloud alpha sql blue-green-deployments create my-deployment --source-instance=my-instance --region=us-central1To create a blue-green deployment with a target database version for a major version upgrade:
gcloud alpha sql blue-green-deployments create my-deployment --source-instance=my-instance --target-database-version=POSTGRES_15 --region=us-central1 - POSITIONAL ARGUMENTS
-
DEPLOYMENT- The ID of the blue-green deployment.
- REQUIRED FLAGS
-
--source-instance=SOURCE_INSTANCE- Cloud SQL instance to be used as source for the blue-green deployment.
- OPTIONAL FLAGS
-
--async- Return immediately, without waiting for the operation in progress to complete.
--description=DESCRIPTION- User-provided description for the blue-green deployment.
--region=REGION- Regional location (e.g. asia-east1, us-east1). See the full list of regions at https://cloud.google.com/sql/docs/instance-locations.
--target-database-version=TARGET_DATABASE_VERSION- Database version for the target instance, for major version upgrade.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$ gcloud helpfor details. - NOTES
-
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation-only early access
allowlist. This variant is also available:
gcloud beta sql blue-green-deployments create
gcloud alpha sql blue-green-deployments create
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-09-01 UTC.
[null,null,["Last updated 2026-09-01 UTC."],[],[]]