> ## 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

<View title="Developer" />

<View title="Federal docs" />

<View title="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. 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:

   <Frame caption="The &#x22;Clone feature flag&#x22; dialog.">
     <img src="https://mintcdn.com/launchdarkly/hutarVphEq2dY_zb/images/auto/flag-clone-details.auto.png?fit=max&auto=format&n=hutarVphEq2dY_zb&q=85&s=330affeede2f08f8e9dbc69a9eb03f4b" alt="The &#x22;Clone feature flag&#x22; dialog." width="1600" height="904" data-path="images/auto/flag-clone-details.auto.png" />
   </Frame>

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 **Tags** 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](/docs/guides/account/views-onboarding).
</Tip>

12. Click **Save flag.** The **Targeting** tab for the new flag opens.

The new flag appears in the **Flags** list.

<Danger>
  **Restrictions on rollouts**

  If the flag you are cloning has an active [guarded rollout](/docs/home/releases/guarded-rollouts) or [progressive rollout](/docs/home/releases/progressive-rollouts), the rollout is not cloned.
</Danger>

<Card icon="https://mintcdn.com/launchdarkly/YIC2H8XW-fomhquw/assets/icons/openapi-logo.svg?fit=max&auto=format&n=YIC2H8XW-fomhquw&q=85&s=dd9578a9668a86e1a8b8c314921f204c" horizontal width="2500" height="2452" data-path="assets/icons/openapi-logo.svg">
  You can also use the REST API: [Copy feature flag](/docs/api/feature-flags/copy-feature-flag)
</Card>
