v0.13.2Control flow and dataflow are rebuilt on explicit semantics, Z3 translation matches executable C# numeric rules, and the build chain is hermetic and supply-chain verified with hash- and size-pinned Z3 binaries.See what's new

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 calor

Or update an existing installation:

Bash
dotnet tool update -g calor

Available Commands

CommandDescription
calor (default)Compile one or more Calor files to C#; type and effect checking are on by default
calor runCompile and execute Calor without a project file
calor testCompile Calor and run xUnit tests without a project file
calor watchIncrementally recompile changed Calor sources
calor verifyVerify contracts with the seven-status proof vocabulary
calor --analyzeStatic analysis: find bugs via dataflow, Z3 verification, and taint tracking
calor assessScore C# files for migration potential (analyze remains an alias)
calor analyze-convertibilityEstimate whether C# source can convert successfully
calor coverageExplain conversion coverage and blockers for one C# file
calor feature-checkQuery the C# feature-support registry
calor convertConvert a file between C# and Calor with explicit loss reporting
calor migrateMigrate projects between C# and Calor
calor importGenerate inferred effect manifests and assumed-provenance contract annotations
calor review-packetReport the unproven remainder, waivers, interop, and caller impact
calor initAdd the SDK and AI-agent integration to a project
calor idsCheck, assign, and index declaration IDs
calor formatRender canonical formatting; writes require experimental acknowledgment
calor lintCheck agent-oriented formatting; fixes require experimental acknowledgment
calor fixApply reversible mechanical source migrations
calor effectsResolve, validate, list, or suggest effect manifest entries
calor benchmarkCompare Calor and C# across evaluation metrics
calor mcpStart the MCP server for coding agents
calor self-check docsDetect agent-documentation drift
calor lspStart the language server over stdio
calor hookRun AI-agent hook checks
calor self-testCheck the compiler distribution against embedded golden files
calor evaluationRun experimental type-system evaluation workflows

Machine-readable commands use the shared envelope schema. Root compile and lint also support SARIF; watch emits one JSON envelope per rebuild as NDJSON.


Compilation (Default Command)

Compile Calor source files to C#:

Bash
calor --input file.calr --output file.g.cs

Options

OptionDescription
--input, -iOne or more Calor inputs; omitting it displays help
--output, -oOptional output path for a single input; otherwise writes beside each input
--verbose, -vShow detailed compilation output
--no-enforce-effectsOpt out of default-on effect enforcement
--no-type-checkOpt out of default-on type checking for this command
--verifyRun Z3 contract verification
--contract-modeRuntime contract mode: off, debug, or release
--format, -fDiagnostics: text, json, or sarif

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.cs

See Also