---
title: "Command reference"
url: https://afflom.github.io/prism-devrel/case-studies/uorust/cli/
diataxis: reference
developer-journey: build
collection: case-studies
collection-group: "UORust"
subject: https://github.com/afflom/uorust
commit: afd5cea950a8987da02bbf0cc7cca420b71c4b53
---

# Command reference

> Every command and option of the UORust tool, read from its source. Also the commands its gate runs.

Subject: [UORust](https://github.com/afflom/uorust) at commit [`afd5cea950a8`](https://github.com/afflom/uorust/tree/afd5cea950a8987da02bbf0cc7cca420b71c4b53), 331 facet records, source digest `f3f743b6834adaff`.

**Figure: The UORust command line.** Each command, read from the source of the command line, and what it does.

- uorust → project
- uorust → check
- uorust → mir
- uorust → prove
- uorust → core
- uorust → routes

Read from the `clap` declaration in [`crates/uorust/src/main.rs`](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/crates/uorust/src/main.rs) at commit `afd5cea950a8`. The [tutorial](https://afflom.github.io/prism-devrel/case-studies/uorust/getting-started/) runs these on a fixture.

## Commands

| Command | What it does |
| --- | --- |
| `project` | Write the projection of a workspace into a directory. |
| `check` | Check that a directory holds exactly the projection of a workspace. |
| `mir` | Dump the MIR of every library and binary target of a workspace, for the MIR path of the lift (`--mir`). |
| `prove` | Decide every translation of the MIR path with `lexlean verify` and write the verdict register (`--verdicts`). |
| `core` | Translate every body of core's MIR, as `scripts/mir/dump-core.sh` dumps it one module at a time, and write the core register. |
| `routes` | Print the route table. |

## Arguments of project and check

| Argument | What it sets |
| --- | --- |
| `<workspace>` | The workspace root, the directory with the top `Cargo.toml`. |
| `--out` | The directory the dumps are written to. |

## What UORust's gate runs

These are the lines of the `uorust` recipe of the [Justfile](https://github.com/afflom/uorust/blob/afd5cea950a8987da02bbf0cc7cca420b71c4b53/Justfile) that name the fixture, the self-projection and its register:

```sh
cargo run -q --locked -p uorust -- check crates/uorust/tests/fixtures/thermostat --out crates/uorust/tests/fixtures/thermostat-prism --name thermostat --last-modified 2026-11-11T00:00:00Z
cd crates/uorust/tests/fixtures/thermostat-prism && lexlean fmt --check && lexlean lock --check && lexlean verify && prismpm check
cargo run -q --locked -p uorust -- check . --out target/uorust-self --name uorust --last-modified 2026-11-11T00:00:00Z --register frontier.toml {{mir}}
```

