CLI Reference

zetl is a single binary with subcommands. All commands output JSON by default — see JSON by Default.

Global flags

FlagShortDescription
--dir <path>-dVault root directory (default: .)
--format <fmt>-fOutput format: json (default) or table
--no-cacheForce full rescan, ignore cached index
--no-colorDisable colored output
--quiet-qSuppress non-essential output
--verbose-vIncrease verbosity (repeat for more: -vv)

Commands

Wikilink commands

CommandDescriptionReference
indexBuild or refresh the link indexIndex Command
links <page>Query forward links from a pageLinks Command
backlinks <page>Query backlinks to a pageLinks Command
path <from> <to>Shortest link path between pagesPath Command
search <query>Full-text content searchSearch Command
similar <query>Fuzzy page name matching (SimHash)Similar Command
checkValidate vault: dead links, orphans, SPL errorsCheck Command
blocks [page]List or resolve Merkle content blocksBlocks Command
diffGit-backed graph diffDiff Command
watchNDJSON event stream on file changesWatch Command
listList all pagesList and Export Commands
exportExport complete link graph as JSONList and Export Commands
statsVault summary statisticsStats Command
tuiInteractive terminal UITUI
view [page]Xanadu-style two-pane readerView Command
serveLocal web serverServe Command
buildStatic site exportBuild Command

Reasoning commands

Require --features reason at build time. See Feature Gates.

CommandDescriptionReference
reason statusCurrent conclusions from vault-wide SPLReason Commands
reason explain <literal>Proof tree with provenanceReason Commands
reason why-not <literal>Why a literal isn’t provableReason Commands
reason require <literal>Abductive: what facts are neededReason Commands
reason what-if <spl>Hypothetical reasoningReason Commands
reason conflictsUnresolved logical contradictionsReason Commands
reason exportExport combined theoryReason Commands
reason provenance <literal>Trace conclusion to source filesReason Commands

Exit codes

CodeMeaning
0Success
1Error (dead links found with --fail-on error, conflicts with --fail-on-conflicts, etc.)

Structured JSON errors are written to stdout, not stderr. See ADR-003 JSON Errors.

See also: Install, Quick Start, JSON by Default

Backlinks