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
The Forest CLI requires Node.js >= 18.0.0.
Getting started
Once installed, authenticate with your Forest account:Commands
Authentication
Branch management
Deployment
Environment management
Project management
Roles and teams
roles:copy runs once per pair of environments, however many teams you have. Between environments whose schemas differ, such as a legacy agent’s and a new one’s, use roles:export and roles:apply, which match permissions by collection and action name.
Schema
Development workflow
A typical development workflow with the Forest CLI looks like this:-
Create a branch to isolate your layout changes:
- Work locally, make layout changes in your Forest UI connected to your development environment.
-
Push your changes to a staging or test environment for review:
-
Deploy to production once changes are validated: