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 validation

Command Groups

ranex task

Workflow management - control development phases

start <name>designbuildstatus

ranex scan

Security & architecture scanning

(default)--path <dir>--json

ranex govern

Full governance validation

checkpre-committransition

ranex audit

Cryptographic audit trail

queryverifyexport

ranex persona

AI persona/role management

set <id>listshowcreate

ranex gate

Phase gate control

checkstatushistoryrequest

ranex drift

Specification drift detection

snapshotcheckmonitorsessionreport

ranex arbiter

3-layer test integrity validation

validatecontractoraclemutate

Additional 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