living-docs
living-docs guideGuide

CLI reference

Commands, flags, and exit codes

Abstract. The living-docs-axi command follows the AXI principles: compact TOON-style output, a content-first home view, and help[] next-step lines.

text
living-docs-axi                         home: themes, built docs, next steps
living-docs-axi themes                  theme list with when to use each
living-docs-axi version                print the version only, also --version or -v
living-docs-axi schema [--block figure] block fields and types
living-docs-axi ingest <path|url|->     outline, or --section <n|id> for one section
living-docs-axi ingest <path> --draft   write a model, with a drafted timeline, from the source
living-docs-axi render <model.json>     validate and write HTML, or --format mp4|webm|gif for video
living-docs-axi validate <model.json>   validation only
living-docs-axi preview [dir]           serve built docs with an index

1 Flags

FlagPurpose
--theme <name>paper-light, paper-dark, hud, or a curated look: field-notes, editorial, blueprint. With --draft, omitted means the source picks
--seed <hex>with --draft: accent seed, overriding the one derived from the title
-o, --out <file>output path
--section <n|id>ingest one section
--max-chars <n>cap section text, default 12000
--fulldisable truncation
--stdoutprint HTML instead of writing a file
--url <url>ingest a URL
--text <text>ingest inline text
--port <n>preview port, default 4600
--no-opendo not open a browser
--staticdraft without timeline cues
--format <f>html (default), mp4, webm, or gif
--size <WxH>video stage, default 1080x1350
--fps <n>video frames per second, default 30
--scale <n>device pixel ratio for the stage, default 1

2 Exit codes

CodeMeaning
0success
1invalid model or runtime failure
2usage error, including unknown flags

Errors are structured on standard output. Unknown flags fail loud instead of being ignored.

3 Examples

bash
npx -y living-docs-axi themes
npx -y living-docs-axi ingest samples/source/harness-notes.md --draft -o docs/draft.model.json
npx -y living-docs-axi render docs/draft.model.json --theme paper-dark -o docs/draft.html
npx -y living-docs-axi preview docs --no-open

4 See also