forest branch
Create, list, or delete layout branches. Branches work similarly to Git branches, but for your Forest UI layout, they let you isolate UI changes while you develop a feature, then push or deploy those changes when ready.Usage
Arguments
Options
Listing branches
Runforest branch without arguments to list all your existing branches:
Creating a branch
Append a branch name to create a new branch:Your project must have at least one remote or production environment before you can create branches.
Branch origins
Every branch needs an origin, the environment whose layout state the branch starts from. Your layout changes build on top of the origin’s layout.- If you omit
--origin, the CLI prompts you to select one interactively. - Branches usually originate from your Production or a Remote Environment.
Deleting a branch
Use the-d flag with a branch name to delete it: