CLI Reference
Build Riviere architecture graphs from the command line.
The CLI is designed for AI-assisted extraction workflows—deterministic IDs, immediate validation feedback, and near-match suggestions when components aren't found.
Graph Initialization
| Command | Purpose |
|---|---|
init | Initialize a new graph |
add-source | Register a source repository |
add-domain | Add a domain |
Component Management
| Command | Purpose |
|---|---|
add-component | Add a component (UI, API, UseCase, DomainOp, Event, EventHandler, Custom) |
Linking
| Command | Purpose |
|---|---|
link | Link two components |
link-http | Link to API by HTTP method + path |
link-external | Link to external system |
Enrichment
| Command | Purpose |
|---|---|
enrich | Add state changes and business rules to DomainOp |
Validation
| Command | Purpose |
|---|---|
check-consistency | Check for errors and warnings |
validate | Validate against JSON Schema |
Discovery
| Command | Purpose |
|---|---|
component-checklist | Generate component checklist |
component-summary | Generate component summary |
Getting Started
- CLI Quick Start — Build your first graph
- AI Extraction — The 6-step AI + CLI workflow