branch
Last updated
Was this helpful?
Last updated
Was this helpful?
This is the official documentation of the forestadmin-agent-django
and forestadmin-agent-flask
Python agents.
The forest branch
command is at the center of what your Forest Admin development workflow should look like. As explained on , it allows you to manage your layouts, a bit like you would use git's branches for your code.
Here are a few extra details on how it works.
The forest branch
command has 3 uses, depending on how you use it:
list branches,
create branches,
delete branches.
To list your existing branches, run forest branch
:
To create a new branch, append the name of the branch you wish to create after forest branch
, like so:
There is no specific constraint on branch names, though kebab-case is generally used.
However, keep in mind that your branch name must be unique in the project.
To delete a branch, use the -d
option and a branch name to the forest branch
command:
Any branch reflects layout changes (i.e. configuration changes in your UI) that you've made on that branch. To make this possible, a branch needs an origin, which is the state of the layout you started from and made these layout changes on. This is why you need to (ideally) or simply a Remote Environment: those Environments can serve as the origin of your branches.