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

# roark customer-flow duplicate

> Duplicate a customer flow

Deep-copies a flow into a new project-owned flow. The copy carries the source's description, branching mode, linked agents, flow-level expectations and flow-owned metrics. A scripted flow copies its whole step graph; an improv flow copies its variants (personas, briefs, expectations). Duplicating a Roark-managed flow is how you customise it. Voicemail flows are Roark-managed and cannot be duplicated.

```bash Synopsis theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark customer-flow duplicate <flow-id> [options]
```

> [!NOTE]
>
> Calls `POST /v1/customer-flow/{flowId}/duplicate`

## Arguments

**flow-id** `string` *required*

The flow-id.

## Options

**--title** `string`

Title for the copy. Defaults to "Copy of" the source flow.

**--agent-ids** `array`

Agents to link on the copy. Omit to carry the source flow's agents over. Required when the source is a Roark-managed flow with no agents of its own. Repeatable.

## Example

```bash theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark customer-flow duplicate <flow-id>
```

Every command also takes the [global options](/cli-reference/overview.md#global-options) and sets one
of the [exit codes](/cli-reference/overview.md#exit-codes).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.