Synopsis
Required arguments
Optional arguments
If
--branch-on or --case are omitted, the CLI enters interactive mode to collect them.How it works
1
Collect inputs
The branch variable, cases, and goal are gathered (from CLI args or interactively).
2
Load runbooks
Each case’s YAML file is loaded and validated.
3
Merge variables
Variables from all cases are merged. The branch variable is added with
source: prompt.4
Build branches
All case steps are assembled into a single
branches step.5
Preview and edit
You can preview the composed runbook and make adjustments before saving.
6
Write output
The final YAML is validated with Zod and written to the output path.
Examples
Compose with CLI arguments
- Prompts the user for
accountType - If
"personal"→ runs the personal signup steps - If
"business"→ runs the business signup steps
Interactive mode
Output structure
The composed runbook contains a single step withbranches: