Skip to main content

forest layout:patch

Patch the layout of an environment and team directly, from a set of JSON Patch operations. Unlike forest layout:pull and forest layout:apply, there is no file to pull first: the CLI sends the operations as they are, one atomic PATCH per section, the same way the Forest UI saves a layout change.

Usage

Arguments

Options

Input format

The input is a JSON object keyed by section. Each value is an array of RFC 6902 operations (add, remove, replace, test):
Workflows are not accepted: use forest workflow:apply to create or change a workflow. The CLI checks every operation against the paths the Forest server accepts before sending anything. If one operation in a section is rejected, the whole section is rejected. If a later section fails after an earlier one succeeded, the CLI says which sections were applied: remove them from the input before retrying.

Examples