Skip to main content

forest deploy

Deploy the layout changes of your current branch to the reference environment (typically Production). Unlike forest push, which targets non-production environments, forest deploy permanently applies your changes to production.

Usage

Options

How it works

When you run forest deploy, your branch’s layout changes (Δ) are permanently applied to your Production Environment:
Since remote environments have Production as their origin, the deployed changes will automatically appear in all remote environments too.
Deploying to production is irreversible. The layout changes will be permanently applied to your Production Environment. Make sure changes have been tested in a staging or remote environment first.

Prerequisites

To deploy a branch, its origin must be the reference environment (Production). If you created your branch from a staging environment, you cannot deploy it directly, you would need to push it to staging first, then deploy from there.

Deploying changes

Run forest deploy from your project directory:
You will be prompted to confirm the deployment. To skip the confirmation:

Deploy from the UI

You can also deploy layout changes directly from the Forest UI. When a remote environment has changes ready to deploy to production, a banner appears at the top with a “Deploy to …” link.
Deploy from the UI is only available for remote environments whose origin is the reference environment (Production).

Push vs. deploy

Examples