How-to¶
Recipes for a specific job, assuming you already have a CLI and want to add one thing to it. If you are starting from nothing, do the tutorial first; if you want the exact behaviour of a function, that is Reference.
- Add a
--output text|jsonflag — one row type, two renderings, no formatting in the command. - Show progress without corrupting CI logs —
when to reach for
Spinnerand what it does when nobody is watching. - Map wizard errors to exit codes — turning cancel, interrupt and failure into the right process exit.
- Test a wizard without a terminal — scripted steps, and why the suite runs headless.