Skip to content

CLI-01: Validate one clean file, see exit 0

Running validate on a conforming document prints “No findings.” and exits 0.

Builds on: nothing — this is the first rung of CLI Quickstart: Validate from the Terminal.

A terminal session: the command as you’d run it, followed by the output it prints; trailing comments note the exit status.

Terminal window
# validate a folder of conforming docs (markdown-contract.yaml auto-discovered from the cwd)
markdown-contract validate ./decisions
Scanned 1 file; 1 matched across 1 contract, 0 unmatched
decisions: 1
No findings.
# exit status: 0 (clean)
  • validate subcommand
  • auto-discovered markdown-contract.yaml
  • formatHuman empty case
  • exit code 0 (clean)