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

# Creating migration flags

<View title="Developer" />

<View title="Federal docs">
  <Danger>
    **Migration flags are not available in federal environments**

    To learn more, read <a href="/docs/home/infrastructure/federal">LaunchDarkly in federal environments</a>.
  </Danger>
</View>

<View title="EU docs">
  <Danger>
    **Migration flags are not available in LaunchDarkly's European Union (EU) instance**

    To learn more, read <a href="/docs/home/infrastructure/eu">LaunchDarkly in the European Union (EU)</a>.
  </Danger>
</View>

This topic explains how to create migration flags. Migration flags are temporary flags you can use to migrate data or tech systems without causing outages or downtime.

Migration flags can have two, four, or six stages. To learn more about when to use different types of migrations, read [Performing multi-stage migrations with migration flags](/docs/guides/flags/migrations).

<Note>
  **Not all SDKs support migration flags**

  Not all SDKs are compatible with migration flags. For a full list of compatible SDKs, read [supported SDKs](/docs/home/flags/migration#supported-sdks).
</Note>

## Create migration flags

Here's how to create a migration flag:

1. Click **Create** and choose **Flag**. The "Create flag" dialog appears.

<Frame caption="The &#x22;Create&#x22; menu options.">
  <img src="https://mintcdn.com/launchdarkly/-b7nPh0oyigf6iW7/images/auto/create-menu.auto.png?fit=max&auto=format&n=-b7nPh0oyigf6iW7&q=85&s=5b3fe40c4dd161b2972de2334ff19c0a" alt="The &#x22;Create&#x22; menu options." width="1180" height="440" data-path="images/auto/create-menu.auto.png" />
</Frame>

2. Enter a unique, human-readable **Name**. A suggested key auto-populates from the name you enter, but you can customize it if you wish.
3. (Optional) Click **Edit key** to update the flag key. You'll use this key to reference the flag in your code.
4. (Optional) Enter a **Description** of the flag. A brief, human-readable description helps your account members understand what the flag is for.
5. (Optional) Click **Custom** and select **2-**, **4-**, or **6-stage migration**.
   * If you selected 6-stage migration, select a **Context kind**.

<Note>
  **Migrations with six stages require a context kind**

  You must choose a context kind to create a six-stage migration. The context kind you choose should indicate how the migrated data is partitioned. It determines how rollouts are bucketed and which context kind to reference when you create cohorts.
</Note>

6. (Optional) Click on your member name to change the flag maintainer.
7. (Optional) Click the **tag** icon to add one or more [tags](/docs/home/account/tags).
8. (Optional) Click the **views** icon to add the flag to a [view](/docs/home/account/views).
9. (Optional) Click **All SDKs** to make the flag [unavailable to client-side or mobile SDKs](/docs/home/flags/flag-settings). Flags are available to all SDKs by default.
10. (Optional) Click **Temporary** to change the flag from [temporary to permanent](/docs/home/flags/flag-settings).
11. Click **Create flag**.

The flag **Targeting** tab appears.

After you create a flag, you can make further changes to it as needed, such as to [update flag targeting](/docs/home/flags/target).

To learn more, read [Creating new flags](/docs/home/flags/new).

## Modify the migration flag template

To modify your migration flag template:

1. Click the project dropdown. The project menu appears:

<Frame caption="The project menu.">
  <img src="https://mintcdn.com/launchdarkly/A4UXoRTW8ATNw4yq/images/auto/project-menu-dropdown.auto.png?fit=max&auto=format&n=A4UXoRTW8ATNw4yq&q=85&s=cb54f266bfd606cf1c307999121a40cb" alt="The project menu." width="576" height="364" data-path="images/auto/project-menu-dropdown.auto.png" />
</Frame>

2. Select **Project settings**.
3. Select **Flags**. The **Flags** settings list appears.
4. In the "Flag templates" section, click the **pencil** icon next to "Migration."
5. In the "Tags" section, type to add tags to each new flag by default.
6. Click **Save**.

Verify that the updated default template settings are correct by navigating to the **Flags** list and creating a new migration flag.
