Validate from the terminal
Each example builds on the one before it — read the group in order, or jump to the one you need. Every shipped artifact is regression-checked against the real CLI and library output.
- Check a folder of docs — Point
validateat a folder and get a verdict: a run summary, findings if any, and a CI-ready exit code. - Read a finding, fix the doc — A document that breaks its contract produces a finding pinned to a source line — open the file at that line and fix it.
- Findings as JSON or SARIF — The same run renders for machines:
--format jsonemits the raw findings array,--format sariffeeds code-scanning uploads. - Bind a contract directly, scope the run — No config file needed:
--contractbinds one contract to a folder, and--include/--excludenarrow any run without touching config. - Scaffold the config with init —
initreads the markdown you already have, infers the tightest config that accepts it, and doubles as a CI drift guard with--check.
Or browse all examples, or open the CLI reference for the underlying spec.