Skip to content

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

CommandPurpose
initInitialize a new graph
add-sourceRegister a source repository
add-domainAdd a domain

Component Management

CommandPurpose
add-componentAdd a component (UI, API, UseCase, DomainOp, Event, EventHandler, Custom)

Linking

CommandPurpose
linkLink two components
link-httpLink to API by HTTP method + path
link-externalLink to external system

Enrichment

CommandPurpose
enrichAdd state changes and business rules to DomainOp

Validation

CommandPurpose
check-consistencyCheck for errors and warnings
validateValidate against JSON Schema

Discovery

CommandPurpose
component-checklistGenerate component checklist
component-summaryGenerate component summary

Getting Started