Export the spec tree from Step 2 to CSV, HTML, and graph formats.
CSV export#
reqmd export csv 02-trace-your-spec/ -o csv-out/Produces one CSV per document directory (stakeholder-requirements.csv, system-requirements.csv, etc.) with a leading Type column followed by ID, Title, all schema attributes, Body, Rationale. Rows are emitted in document order for every node — requirements and containers/info items (headings without attr blocks) — so the CSV mirrors the source document, not just its requirement subset.
HTML export#
reqmd export html 02-trace-your-spec/ -o html-out/Produces standalone HTML files with:
- Requirement cards with goldmark-rendered body text
- Collapsible container sections and plain info blocks for headings without
attrblocks (folders, exactly as authored) - Sidebar TOC with the same folder nesting
- Upstream/downstream trace links between files
- Document chain tab strip (V-model navigation)
- Search and filter (Alpine.js, requirement-scoped)
- Light/dark theme toggle
Open html-out/tests-requirements.html in a browser to see trace links.
See it live. Don't want to run the export yourself? Here's a real HTML export from the reqmd project's own spec, showing card layout, trace links, the document chain, search, and theme toggle:
Open the system requirements export →
Other documents in the same export: Stakeholder needs, Software requirements, Test specifications. Try the trace links — they cross between documents.
Graph export (requires LadybugDB build)#
go build -tags ladybug -o reqmd ./cmd/reqmd
reqmd export graph 02-trace-your-spec/ -o graph-out/Creates a LadybugDB graph database with one node per requirement and TracesTo edges for every trace link. Query with:
lbug graph-out/reqmd-graph.lbugExport with verification results#
All export formats accept --results (see Steps 11 and 12):
reqmd export html 02-trace-your-spec/ \
--results 11-verification-results-ctrf/ \
--results 12-review-documentation/ \
-o html-out/HTML gets color-coded verdict badges on measure cards; CSV gets Verdict and Verdict Source columns; Graph gets RESULT: nodes with outcome properties.
Where to look things up#
- Export flags and column/section details:
reqmd export csv,reqmd export html,reqmd export graph
What’s next#
You can export the standard spec tree. Now preview it live while you edit — go to Step 4.