CLI Reference
Ranex provides 22 CLI commands across 14 command groups.
Essential Commands
ranex init # Initialize Ranex in current directory
ranex doctor # Check system health
ranex task start <name> # Start a new feature
ranex task design # Move to design phase
ranex task build # Unlock code generation
ranex scan # Security & architecture scan
ranex govern check # Full governance validationCommand Groups
ranex task
Workflow management - control development phases
start <name>designbuildstatusranex scan
Security & architecture scanning
(default)--path <dir>--jsonranex govern
Full governance validation
checkpre-committransitionranex audit
Cryptographic audit trail
queryverifyexportranex persona
AI persona/role management
set <id>listshowcreateranex gate
Phase gate control
checkstatushistoryrequestranex drift
Specification drift detection
snapshotcheckmonitorsessionreportranex arbiter
3-layer test integrity validation
validatecontractoraclemutateAdditional Commands
ranex arch
Verify architectural layering (routes/service/models/commons)
ranex fix
Auto-fix structure violations (quarantines illegal files)
ranex verify
Execute Holodeck simulation tests
ranex context
Generate AI context file for ChatGPT/Claude
ranex logs
show, tail, search, export, clean, stats
ranex db
inspect, check - Database schema inspection
Getting Help
ranex --help # Show all commands
ranex <command> --help # Show help for specific command
ranex doctor # Check system health