# deploy

The `forest deploy` command enables you to apply some layout changes to your [reference](https://docs.forestadmin.com/developer-guide-agents-nodejs/~/revisions/RIg7Xt85Z2LyzUxn7V93/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://3861847666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9UN5oBJhgzLadOqi7jx6%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 layout. Since your remotes' layout are based on your production's layout, 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 (eg: production)
{% endhint %}

### Deploy from the UI

This is possible **only from a remote** which has the reference environment as origin:

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

To deploy your latest layout changes from a remote environment, you may use the **top banner link**: "Deploy to ...".
