CLI Reference
The calor command-line tool provides commands for working with Calor code and analyzing C# codebases for migration.
Installation
Install calor as a global .NET tool:
Bash
dotnet tool install -g calorOr update an existing installation:
Bash
dotnet tool update -g calorAvailable Commands
| Command | Description |
|---|---|
calor (default) | Compile Calor source files to C# |
calor analyze | Score C# files for Calor migration potential |
calor init | Initialize Calor with AI agent support and .csproj integration |
calor convert | Convert single files between C# and Calor |
calor migrate | Migrate entire projects between C# and Calor |
calor ids | Manage unique identifiers (check, assign, index) |
calor benchmark | Compare Calor vs C# across evaluation metrics |
calor format | Format Calor source files to canonical style |
calor lint | Check and auto-fix agent-optimized format issues |
calor diagnose | Output machine-readable diagnostics for tooling |
calor mcp | Start MCP server for AI agent integration |
calor hook | Claude Code hook commands (internal) |
Compilation (Default Command)
Compile Calor source files to C#:
Bash
calor --input file.calr --output file.g.csOptions
| Option | Description |
|---|---|
--input, -i | Input Calor file path (required) |
--output, -o | Output C# file path (required) |
--verbose, -v | Show detailed compilation output |
Example
Bash
# Compile a single file
calor --input src/MyModule.calr --output src/MyModule.g.cs
# Compile with verbose output
calor -v -i src/MyModule.calr -o src/MyModule.g.csSee Also
- Getting Started - Installation and first program
- Syntax Reference - Complete language reference