Skip to main content

Forest CLI

The Forest CLI (forest) is a command-line tool that lets you manage your Forest layout changes throughout your development workflow, from local development to production deployment.

Installation

You can verify the installation with:
The Forest CLI requires Node.js >= 18.0.0.

Getting started

Once installed, authenticate with your Forest account:
Then initialize your development environment from your project directory:

Commands

Authentication

Branch management

Deployment

Environment management

Project management

Schema

Development workflow

A typical development workflow with the Forest CLI looks like this:
  1. Create a branch to isolate your layout changes:
  2. Work locally, make layout changes in your Forest UI connected to your development environment.
  3. Push your changes to a staging or test environment for review:
  4. Deploy to production once changes are validated:

Docker usage

You can also run the CLI via Docker without installing it locally:

Global options

All commands support the following options: