Graph Queries
zetl exposes the Link Graph through several query commands. All output JSON by default — see JSON by Default.
(given forward-links-done)
(given backlinks-done)
(given shortest-path-done)
Commands
zetl links <page>
Show all pages that <page> links to. Supports --depth N for multi-hop traversal and --fuzzy for approximate page name matching.
zetl backlinks <page>
Show all pages that link to <page>. Same depth and fuzzy options as links.
zetl path <from> <to>
Find the shortest chain of Wikilinks connecting two pages. Useful for discovering how ideas relate through intermediate notes.
zetl export
Dump the entire Link Graph as JSON — every page and every link.
zetl list
zetl stats
Summary statistics: page count, link count, orphan count, and the most-linked pages.
Cross-referencing with reasoning
Add --with-conclusions to links or backlinks to see what Spindle Lisp conclusions each linked page contributes. This bridges the structural graph with the logical theory from the Reasoning Engine.
zetl -d . links "Cache" --with-conclusions
See also: Link Graph, Vault Diagnostics, Search, TUI