| Crates.io | lemma-cli |
| lib.rs | lemma-cli |
| version | 0.7.2 |
| created_at | 2025-10-19 22:18:59.153536+00 |
| updated_at | 2026-01-25 20:28:24.371625+00 |
| description | A language that means business. |
| homepage | |
| repository | https://github.com/benrogmans/lemma |
| max_upload_size | |
| id | 1890996 |
| size | 200,948 |
A command-line interface for the Lemma language.
This package provides the lemma CLI for running, inspecting, and serving Lemma docs. It ships alongside the lemma-engine crate and exposes the same deterministic, auditable evaluation pipeline from the terminal.
Lemma is still early-stage and not yet recommended for production use. Expect breaking changes and evolving commands while the toolchain stabilizes.
cargo install lemma-cli
After installation the lemma binary is available on your PATH.
# Evaluate a document (all rules)
lemma run shipping
# Evaluate specific rules
lemma run tax_calculation:tax_owed
# Override facts at runtime
lemma run tax_calculation income=75000 filing_status="married"
# Explore documents interactively
lemma run --interactive
# Show document structure
lemma show pricing
# List available documents
lemma list ./documentation/examples
# Start the HTTP server
lemma server --port 3000 --dir ./documentation/examples
# Start the MCP server (AI assistant integration)
lemma mcp --dir ./documentation/examples
Each command supports --help for full usage details.
--raw flag for tooling and pipelineslemma run shipping
# Output:
# ┌───────────────┬──────────────────────────────────────────────────────┐
# │ Rule ┆ Evaluation │
# ╞═══════════════╪══════════════════════════════════════════════════════╡
# │ express_fee ┆ 4.99 │
# │ ┆ ... │
# └───────────────┴──────────────────────────────────────────────────────┘
Enable raw mode to pipe results:
lemma run shipping --raw > output.json
Contributions are very welcome! See documentation/contributing.md and the project roadmap for ideas.
Apache 2.0