Installation
Command Structure
All AXON CLI commands follow this format:Available Commands
check
Validate syntax and semantics without execution
compile
Compile source code to AXON IR JSON
run
Execute AXON programs end-to-end
trace
Visualize execution traces and debug flows
Quick Start
Global Options
Version Information
axon-lang version.
Help
Exit Codes
All AXON CLI commands use consistent exit codes:| Code | Meaning |
|---|---|
0 | Success — operation completed without errors |
1 | Compilation or execution error |
2 | I/O error (file not found, invalid JSON, etc.) |
Pipeline Architecture
The AXON compiler follows a multi-stage pipeline: Each CLI command accesses different stages:- check: Runs through Type Checker
- compile: Runs through IR Generator
- run: Full pipeline including Executor
Environment Variables
The CLI respects standard environment variables for configuration. See API Keys for authentication setup.Output Formats
Colored Terminal Output
By default, the CLI uses ANSI color codes for enhanced readability:- ✓ Green for success
- ✗ Red for errors
- Yellow for warnings
- Cyan for informational output
--no-color (supported by check and trace commands).
JSON Output
For programmatic access, use--stdout with the compile command to output machine-readable JSON.
Examples
Development Workflow
CI/CD Integration
Production Execution
Next Steps
Command Reference
Explore detailed documentation for each command
Configuration
Set up API keys and tool backends
