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

# Cloning existing flags

**Developer**

**Federal docs**

**EU docs**

You can create new flags by cloning existing flags. When you clone a flag, LaunchDarkly makes a new flag and copies the original flag's targeting configuration for all environments, including default values and whether the flag is toggled on or off. Experiment information, such as iterations and metrics, is not copied over. You can then modify the clone's configuration if needed.

To clone a flag:

1. In the left sidebar, click **Code**. The CodeControl menu appears.

2. Click **Flags**.

3. Open the flag you wish to clone.

4. Click the **three-dot** overflow menu in the right sidebar.

5. Select **Clone this flag**.

6. The "Clone feature flag" dialog appears:

   ![The "Clone feature flag" dialog.](https://mintcdn.com/launchdarkly/nJ-98AdUTCC7b8MD/images/auto/flag-clone-details.auto.png?fit=max\&auto=format\&n=nJ-98AdUTCC7b8MD\&q=85\&s=0b63b7aeb7b68069d9e6eb986dfd898c)

   The "Clone feature flag" dialog.

7. Enter a unique, human-readable **Name**.

8. (Optional) Update the unique flag **Key**. You'll use this key to reference the flag in your code. A suggested key auto-populates from the name you enter, but you can customize it if you wish.

9. (Optional) Enter a **Description** of the new flag. A brief, human-readable description helps your account members understand what the flag is for.

10. (Optional) Add the flag to one or more **Views**.

11. (Optional) Click into the **Add tag** menu and choose one or more tags for your flag.

    > [!TIP]
    >
    > **Tags sort flags into groups**
    >
    > Use tags to group related flags so your team can find them more easily.
    >
    > For most access-control use cases, use views to scope access within a project. To learn more, read [Onboarding to views](https://launchdarkly.com/docs/guides/account/views-onboarding.md).

12. Click **Create**. The page reverts to the **Targeting** tab of the original flag you cloned, not the clone itself.

You can find the new flag in the **Flags** list.

> [!CAUTION]
>
> **Restrictions on rollouts**
>
> LaunchDarkly does not clone active [guarded rollouts](https://launchdarkly.com/docs/home/releases/guarded-rollouts) or [progressive rollouts](https://launchdarkly.com/docs/home/releases/progressive-rollouts). The new flag does not include the original flag's rollout.

> [card]
>
> You can also use the REST API: [Copy feature flag](https://launchdarkly.com/docs/api/feature-flags/copy-feature-flag.md)
