Command reference
Every command, in one place.
Typing less #
Two optional ways to avoid typing vendor/bin/barnspek. Put vendor/bin on your PATH
once (in your shell profile or a project’s .envrc), and it is barnspek. Or add a script to your own
composer.json and run it with composer run barnspek -- <command>. The -- matters: without it
Composer takes anything beginning -- for itself, silently.
Warning. Composer stops any script still running after 300 seconds. That would end an interactive command such as refine left waiting. Run interactive commands through vendor/bin/barnspek or your PATH, not a Composer script.
Options every command takes #
Option Effect -h, --helpShow a command’s own full list of flags. -n, --no-interactionNever ask a question. -q, --quietPrint only errors. --silentPrint nothing. -v, -vv, -vvvPrint more. --ansi, --no-ansiForce or disable colour.
vendor/bin/barnspek list prints every command and vendor/bin/barnspek help <command> prints its flags. Those are the full reference; this page is the map.
Barnspek commands #
Make a barn #
Command What it does initMake a barn here if there is none, and say where Barnspek keeps its spec. skills:installCopy Barnspek’s agent skills into the project. guiStart the browser app and open it.
Capture #
Command What it does create-area-of-businessMake an area of business with its first Phase. create-phaseMake the next Phase of an area of business. create-storyMake, or reuse, an area of business and role, and make a story. create-scenarioMake a Scenario from a JSON file. refineAdd Scenarios to a story, one question at a time.
Change #
Command What it does rewordChange the title or meaning of a role, subject, fact, action, parameter or Phase, or a story’s goal or reward, until its Phase is released. restage-storySet or clear a story’s stage. deleteDelete a story, a Scenario, or an unused subject, fact, action or parameter, until its Phase is released. set-exampleSet or remove a parameter’s example, at any time.
Read #
Command What it does showList areas of business, or one area of business’s outline. mapPrint the story map. writeWrite a Markdown and an HTML document for each story. glossaryWrite an area of business’s glossary, or all of them with an index. historyWrite the history, Phase by Phase, as linked HTML. release-notesPrint a released Phase’s notes as Markdown.
Work #
Command What it does work:createOpen a ticket against a Scenario. work:listList a Scenario’s tickets and its colour. work:statusMove a ticket to to-do, in-progress or done. work:deleteDelete a ticket.
Release and change #
Command What it does release-phaseRelease the active Phase once it is proven. elaborate-storyOpen a released story to change in the active Phase. retire-scenarioRetire a released story’s Scenario through its elaboration. withdraw-from-elaborationUndo a change still pending in an elaboration. record-impactRecord whether a released story delivered its reward. outstanding-impactsList released stories whose reward nobody has settled.
Commands from the other packages #
Command What it does port-generator generate <area-of-business>Write the Port classes for an area of business. port-generator check <area-of-business>Report Ports that are stale or not yet generated. scenario-bridge run <area-of-business> <scenario>Run one Scenario, and record the result. scenario-bridge run-all <area-of-business>Run every Scenario of an area of business. wizard-resetPreview wiping all of Barnspek’s records; --force does it.
The first four are in Prove a Scenario , and wizard-reset in Where your data lives .