# Migrate changes between environments

When you work with environments, it is necessary to migrate changes from one environment to production or vice versa.

## How to migrate a change from one environment to another

{% hint style="warning" %}
The changes will be applied to the application you are currently working on
{% endhint %}

1. Go to the Application Designer where you want to deploy the changes
2. Go to the Environments tab
3. Click on the "Compare" button
4. Select the environment you want to compare with.
5. Navigate to the feature or hook you want to compare and migrate changes
6. You will see something like this:&#x20;

   <figure><img src="/files/Zppckssuk2ulfEJcncKN" alt=""><figcaption></figcaption></figure>
7. Click on "Migrate changes."
8. You will be prompted to confirm the action.&#x20;

   <figure><img src="/files/DeIWc3DMsi97gQcW1gV2" alt=""><figcaption></figcaption></figure>
9. The change will be saved in the current application where you are currently working.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://codenull.gitbook.io/dev/environments/migrate-changes-between-environments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
