Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Commands & Options

The orrery command reads an .orr source file and renders it as an SVG diagram.

Usage

orrery <input> [options]

Arguments

ArgumentRequiredDescription
<input>YesPath to the .orr source file

Options

OptionShortDefaultDescription
--output <path>-oout.svgPath for the output SVG file
--config <path>-cPath to a TOML configuration file
--log-level <level>infoLogging verbosity

Log levels

LevelDescription
offNo output
errorErrors only
warnErrors and warnings
infoGeneral progress information (default)
debugDetailed processing information
traceFull diagnostic output

Examples

Render a diagram with default settings:

orrery diagram.orr

Specify an output file:

orrery diagram.orr -o architecture.svg

Use a custom configuration file:

orrery diagram.orr -c orrery/config.toml -o output.svg

Quiet mode (errors only):

orrery diagram.orr --log-level error

Output

Orrery produces a single SVG file. The SVG includes all shapes, relations, text labels, and styling defined in the source file.

Exit codes

CodeMeaning
0Success — SVG file written
1Error — syntax error, semantic error, or I/O failure

When errors occur, Orrery prints diagnostic messages to stderr with error locations, descriptions, and visual highlighting of the relevant source code. Multiple errors can be reported at once, so you may see several diagnostics from a single run.

Error output

Each error includes a precise source location with visual context:

  × Undefined component 'cache' in relation
   ╭─[diagram.orr:12:1]
12 │ server -> cache: "Lookup";
   ·           ─────
   ╰────
  help: Did you mean to declare 'cache' as a component?