# Migrate or duplicate a stack

## Migrating a stack

From the menu select **Stacks** then select the stack you want to migrate.

<figure><img src="https://3850702872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXI7douejaBgpZ6CP2zJf%2Fuploads%2Fgit-blob-0f5c18bd81ab32b90dfa0f4f6a4e7ff1cfe8c015%2F2.20-stacks-edit.gif?alt=media" alt=""><figcaption></figcaption></figure>

In the **Stack duplication / migration** section, select the destination environment for the stack, and optionally define a new name for the stack. Click **Migrate**.

<figure><img src="https://3850702872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXI7douejaBgpZ6CP2zJf%2Fuploads%2Fgit-blob-75d0dc2271e464a655fdd40e187cf2ede091621b%2F2.20-stacks-migrate-migrate.png?alt=media" alt=""><figcaption></figcaption></figure>

When the confirmation message appears, click **Migrate**.

<figure><img src="https://3850702872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXI7douejaBgpZ6CP2zJf%2Fuploads%2Fgit-blob-716d6a655b266ea8a087ca67c0c69be3bb6efe54%2F2.15-stack-migrate-confirm.png?alt=media" alt=""><figcaption></figcaption></figure>

## Duplicating a stack

From the menu select **Stacks** then select the stack you want to duplicate.

<figure><img src="https://3850702872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXI7douejaBgpZ6CP2zJf%2Fuploads%2Fgit-blob-0f5c18bd81ab32b90dfa0f4f6a4e7ff1cfe8c015%2F2.20-stacks-edit.gif?alt=media" alt=""><figcaption></figcaption></figure>

In the **Stack duplication / migration** section, give the new stack a descriptive name then select the environment that the stack is currently on.

<figure><img src="https://3850702872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXI7douejaBgpZ6CP2zJf%2Fuploads%2Fgit-blob-e0d0496adedc51cc4e48e0a2683755b1d89f41bb%2F2.20-stacks-migrate-duplicate.png?alt=media" alt=""><figcaption></figcaption></figure>

When you're ready, click **Duplicate**.
