---
title: "ezgh databases blue-green create"
description: "Start a blue/green deployment."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh databases blue-green create

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh databases blue-green create <database> --target-engine-version v [--target-instance-type t] [--switchover-timeout n] [--wait] [flags]
```

Copy a database (blue) to green, on a newer engine version and optionally a new instance type. Green is kept in step with blue and has its own endpoint to test against. A switchover then makes green the database, at blue's endpoint. It's refused, with each reason, when the database can't be copied. `--wait` waits until green is ready and prints the deployment.

Part of [`ezgh databases blue-green`](/cli/reference/databases-blue-green).

## Examples

```sh
ezgh databases blue-green create orders --target-engine-version 18 --wait
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--switchover-timeout` | int |  | seconds a switchover may take before it gives up and leaves blue as it was, 60 to 3600 (default 300) |
| `--target-engine-version` | string |  | the version green runs |
| `--target-instance-type` | string |  | green's instance type (default the database's) |
| `--wait` | boolean |  | wait until green is ready, and print the deployment then |
| `--wait-timeout` | duration | `10m0s` | how long `--wait` waits |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/databases-blue-green-create/index.mdx
