forest push command enables you to apply your local changes to a remote non-production environment: for instance, pushing to your staging environment will result in your latest local layout changes being visible on your staging.
$ forest push --helpPush layout changes of your current branch to a remote environment.USAGE$ forest pushOPTIONS-e, --environment=environment The remote environment name to push onto.--force Skip push changes confirmation.--help Display usage information.--projectId=projectId The id of the project to work on.
It is paramount to understand this command before using it:
Pushing a branch to a remote means applying your latest layout changes to your origin environment. In the above figure, your layout changes (Δ) will be moved from
To push to a remote environment, either provide an environment name using the
$ forest push -e Staging
or omit the argument: you will then be prompted to easily select among your remote environments:
$ forest push[? Select the remote environment you want to push onto:Remote1Remote2
You will be prompted for confirmation before pushing to a remote:
$ forest push -e Remote2[? Push branch my-current-branch onto Remote2 (Y|n): Y
forest push applies your latest layout changes to a non-production environment (i.e a "remote")
forest deploy applies your latest layout changes to your origin environment definitively