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

# Environments

> Every environments command in the Flexprice CLI, with flags, required fields and examples.

## clone

Clone an environment

| Flag                      | Type   | Required | Description                                                                                                                                                            |
| ------------------------- | ------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--name`                  | string |          | Name of the new environment (required when target\_environment\_id is not provided)                                                                                    |
| `--target_environment_id` | string |          | TargetEnvironmentID is the ID of an existing environment to clone into (optional). When provided, Name and Type are ignored. When omitted, Name and Type are required. |
| `--type`                  | string |          |                                                                                                                                                                        |

```sh theme={null}
flexprice environments clone
```
