CLI Reference¶
Command-line interface for Archlette.
Syntax¶
Stage defaults to all. Full pipeline.
Options¶
-f, --file <path>
Path to configuration file. Defaults to archlette.config.yaml in current directory.
Stages¶
Stages chain automatically. Each runs all previous stages.
all (default)
Run full pipeline: Extract → Validate → Generate → Render → Docs
extract
Extract architecture from source code. Produces IR JSON.
validate
Extract + validate IR against schema.
generate
Extract + validate + generate DSL files.
render
Extract + validate + generate + render diagrams to images.
docs
Alias for all. Full pipeline.
Usage Patterns¶
Development:
# Test extraction
npx archlette -f archlette.config.yaml extract
# Check validation
npx archlette -f archlette.config.yaml validate
# Test DSL generation
npx archlette -f archlette.config.yaml generate
Production:
CI/CD:
Exit Codes¶
0— Success1— Error (validation failed, file not found, etc.)
Environment Variables¶
None currently supported.
See Also¶
- Configuration — Config file reference
- Quick Start — Working example