# deploy

{% hint style="success" %}
This is the official documentation of the `forestadmin-agent-django` and `forestadmin-agent-flask` Python agents.
{% endhint %}

The `forest deploy` command enables you to apply some layout changes to your [reference](https://docs.forestadmin.com/developer-guide-agents-python/using-branches#what-is-a-branch) environment.

```
$ forest deploy --help

Deploy layout changes of the current branch to the reference one.

USAGE
  forest deploy

OPTIONS
  --force                  Skip confirmations.
  --help                   Display usage information.
```

#### Deploying your changes

It is paramount to understand this command before using it:

![](https://2921382565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HgnlEINLUAEQC1KgN48%2Fuploads%2Fgit-blob-911778f70a0a3e57e7ee42f2552b322e8b344da2%2Fdeploy-command.png?alt=media)

As you can see in the above figure, the layout changes (Δ) located in your local branch `my-branch` will be **irreversibly applied** to your Production Environment layouts. Since your Remote Environment have Production as origin, the changes will appear there too.

To deploy, simply run `forest deploy`:

```
$ forest deploy
```

{% hint style="info" %}
To be able to deploy, the origin of the branch should be the reference Environment (generally Production).
{% endhint %}

#### Deploy from the UI

{% hint style="warning" %}
This action is only possible for Remote Environments that have an origin that is the reference Environment (so generally Production as origin).
{% endhint %}

![](https://2921382565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HgnlEINLUAEQC1KgN48%2Fuploads%2Fgit-blob-500d52afcc25ed9372166eb7c4d8f2745e5f7484%2Fdeploy-ui.png?alt=media)

To deploy your latest layout changes from a Remote Environment, use the **top banner link**: "Deploy to ...".
