---
title: "ezgh caches blue-green create"
description: "Create 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 caches 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 caches blue-green create <cache> --target-engine-version v [flags] [--wait]
```

Create a blue/green deployment of a Valkey cache: a green copy on a newer version that follows the cache, read-only, with its own endpoint to test your clients against. `--target-instance-type`, `--target-mode` and `--target-storage-size-gib` change its size and mode, which is how a cache changes mode. Users you create, change or delete apply to both. A cache has one open deployment at a time.

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

## Examples

```sh
ezgh caches blue-green create wp-cache --target-engine-version 9.1 --wait
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--switchover-timeout-seconds` | int |  | how long a switchover waits for green to catch up, 1 to 300 (default 30) |
| `--target-engine-version` | string |  | the newer version green runs |
| `--target-instance-type` | string |  | green's instance type (default the cache's) |
| `--target-mode` | string |  | green's mode, memory or persistent (default the cache's) |
| `--target-storage-size-gib` | int |  | a persistent green's storage, in GiB |
| `--wait` | boolean |  | wait until green is available, and print it 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/caches-blue-green-create/index.mdx
