v2mom CLI¶
Command-line tool for working with V2MOM documents.
Installation¶
Commands¶
validate¶
Validate a V2MOM document against the JSON Schema:
Options:
| Flag | Description |
|---|---|
--strict |
Use strict validation rules |
--quiet |
Only output errors |
render¶
Render a V2MOM document to various formats:
Options:
| Flag | Description |
|---|---|
-o, --output |
Output file path |
-f, --format |
Output format (marp, pandoc) |
Examples¶
Validate a Document¶
Strict Validation¶
Generate Marp Slides¶
Generate PDF Report¶
v2mom render strategy.json -f pandoc -o report.md
pandoc report.md -o report.pdf --pdf-engine=lualatex
Exit Codes¶
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Validation errors |
| 2 | File not found |
| 3 | Invalid JSON |