CLI Reference
The wcl binary drives parsing, checking, evaluation, editing, formatting, the language server, and wdoc.
wcl parse
Parse a file and print the resulting document tree (forcing full evaluation). --profile writes a call-tree profile as JSON to stderr.
wcl check
Parse and validate against the schema. Exit code 0 means valid, 1 a parse error, 2 a schema violation.
wcl eval / wcl get
Resolve a dotted path from the document root and print the value. --json emits JSON; --profile writes a profile to stderr.
wcl set
Update the field at a dotted path with a new WCL expression, following the import chain to the file that declares it. Quote shell-special values.
wcl fmt
Reformat to canonical form (comments and blank-line groupings preserved). --in-place overwrites; --indent N sets indent width; --no-trailing-comma drops the trailing comma after match arms.
wcl repl
An interactive read-eval-print loop. Pass a file to resolve identifiers against its top-level fields. :quit or EOF exits.
wcl lsp
Run the language server (diagnostics, formatting, symbols, go-to-definition, completion, hover, code actions). Defaults to stdio; --tcp ADDR listens on a socket and --log FILE writes trace logs.
wcl wdoc
Build or serve a wdoc documentation site. build renders HTML to --out; serve runs a live-reloading dev server; pdf renders one PDF per site; markdown (alias md) renders a folder of .md files with diagrams as standalone .svg files, aimed at AI / text consumers; skill renders an agent / Claude skill folder (SKILL.md + references/ + scripts/ + assets/) from a :ai_skill site. --site NAME filters to one named site.