CLI Reference ​
The richview CLI generates, validates, lints, verifies, and publishes reports from the command line.
Global options ​
| Flag | Description |
|---|---|
-o, --output <dir> | Output directory |
-f, --format <format> | Output format: json or pretty (default: pretty) |
--verbose | Enable verbose output |
--no-color | Disable colored output |
-v, --version | Print version |
Commands ​
generate <schema> ​
Generate an HTML report from a JSON or YAML schema file. Alias: render.
richview generate report.yaml
richview generate report.json -o dist/validate <schema> ​
Validate a schema file against the RichView report schema without rendering.
richview validate report.yamllint <schema> ​
Check a report for quality issues across data quality, chart quality, accessibility, best practices, structure, and provenance.
richview lint report.yaml
richview lint report.yaml --severity warning
richview lint report.yaml --category data-quality,chart-quality
richview lint report.yaml --disable missing-alt-text,missing-provenance| Flag | Description |
|---|---|
--severity <level> | Minimum severity: error, warning, info (default: info) |
--category <cat> | Filter by category (comma-separated) |
--disable <rules> | Disable specific rules (comma-separated) |
verify [report] ​
Run verification assertions on a report file.
richview verify report.yaml
richview verify --list-typescheck <schema> ​
Combined quality check: validates schema, lints, and verifies assertions in one pass.
richview check report.yaml
richview check report.yaml --verify-only
richview check report.yaml --lint-onlyinit [name] ​
Scaffold a new report project with an example schema.
richview init my-report
richview init dashboard --template dashboard
richview init report --jsonTemplates: starter, dashboard, analysis, charts, blank, postmortem, monthly-review, data-quality.
serve <schema> ​
Start a local dev server with live reload.
richview serve report.yaml
richview serve report.yaml --port 8080 --openexport <schema> ​
Export a report to PDF.
richview export report.yaml
richview export report.yaml --paper Letter --landscapepublish <schema> ​
Package a report as a deployable static site.
richview publish report.yaml
richview publish report.yaml --slug my-report --no-badgewatch <schema> ​
Watch a schema file and rebuild on every change.
richview watch report.yaml
richview watch report.yaml --include data.csvconvert <schema> ​
Convert a report between JSON and YAML formats.
richview convert report.yaml --to json
richview convert report.json -o report.yamldiff <base> <head> ​
Compare two report versions and show what changed.
richview diff v1.yaml v2.yamlmerge <files...> ​
Merge multiple report files into a single report.
richview merge part1.yaml part2.yaml
richview merge *.yaml --title "Combined Report" --duplicates renamestats <schema> ​
Show comprehensive statistics about a report: section counts, word counts, data coverage.
richview stats report.yamldescribe <schema> ​
Generate a text description of a report for agent self-verification.
richview describe report.yaml
richview describe report.yaml --text-only
richview describe report.yaml --section revenue-chartsummary <schema> ​
Show a compact text summary for agent pipelines.
richview summary report.yaml --plaininspect <schema> ​
Deep introspection: data profiling, assertion coverage, column statistics.
richview inspect report.yamlextract <schema> ​
Extract structured data from report sections.
richview extract report.yaml --type chart
richview extract report.yaml --section revenue-chart --what datatransform <schema> ​
Apply transformations to a report.
richview transform report.yaml --keep-type chart,table
richview transform report.yaml --head 5
richview transform report.yaml --strip-assertions --anonymizeimport <file> ​
Import CSV or JSON data as a report section.
richview import data.csv
richview import data.json --type chart --chart-type lineembed <schema> ​
Generate embeddable HTML for a report or section.
richview embed report.yaml
richview embed report.yaml --section revenue-chart --mode htmltemplate <subcommand> ​
List, preview, or apply built-in report templates.
richview template list
richview template show dashboard
richview template apply dashboard --title "Q4 Dashboard"theme <subcommand> ​
Manage corporate branding.
richview theme init
richview theme validate brand.yaml
richview theme preview brand.yamlschema ​
Output the RichView report JSON Schema for IDE autocomplete.
richview schema
richview schema --compact
richview schema --search chart
richview schema --section big-numberscreenshot <schema> ​
Take a PNG screenshot of a rendered report for agent verification.
richview screenshot report.yaml
richview screenshot report.yaml --width 1440 --full-pagegallery <dir> ​
Generate an index page listing all reports in a directory.
richview gallery ./reports --recursivecompletions [shell] ​
Generate shell completion scripts.
richview completions bash >> ~/.bashrc
richview completions zsh >> ~/.zshrc
richview completions fish > ~/.config/fish/completions/richview.fish