mdv
The mdv command line: install, the nine commands, global options, exit codes.
Computer, run a Level 1 diagnostic. Nine commands answer;
checkdoes most of the work.
npm i -D mediva # installs the `mdv` command
mdv check <files...> --schema <contract.mdv.md>npx mediva <command> runs it without installing.
Commands
| Command | What it does |
|---|---|
mdv check | Validate Markdown documents against their *.mdv.md contracts |
mdv fix | Apply every safe autofix in place |
mdv init | Write the optional config or the agent skill (starters are being rebuilt) |
mdv explain | Show what a rule, diagnostic code, field kind, or document's contract means |
mdv render | Strip mdv comments out into plain Markdown |
mdv sources | Manage the external data that contracts ground themselves in |
mdv lsp | Run the language server over stdio (what editors invoke) |
mdv debug | Authoring and plugin diagnostics |
Global options
Accepted by every command.
-h,--help— Show help;mdv <command> --helpshows one command.-v,--version— Show the installed mediva version.--configFILE— Load an explicit config instead of discovering mediva.config.mjs.--no-config— Ignore every config file; use only built-in rules.--color,--no-color— Force or disable ANSI colour (default: auto-detect).
Exit codes are on mdv check.