# CLI commands

`lamino` has 22 subcommands. With `--json` (or without it when stdout is not a terminal), each returns one line: `{"ok": true, "result": ...}` or `{"ok": false, "error": ...}`. For a person reading the output, use `--human` or `--pretty`. Every option is listed in [CLI and MCP in the reference](/docs/reference/cli/).

## Investigate

| Command | When to use it |
| --- | --- |
| `schema` | Node list, parameters, conventions and diagnostic codes. Read it once at the start. It also prints the project scaffolding (`--setup`, `--config`, `--dts`, `--template`) |
| `inspect` | Inspect footage: frame range and missing frames, EXR layers and channels, resolution, estimated colour space, value range (`--stats`). Use it before you write a `read` |
| `check` | Runs the comp, writes the IR and returns script errors and lints. Does not render |
| `lint` | Returns lints only |
| `probe` | Node statistics (min, max, mean, NaN) and pixel values at given coordinates (`--pixel x,y`, in width units) |
| `stats` | Evaluation time per node, cache, VRAM |
| `bench` | Times a proxy render |
| `changes` | What changed since a git revision: the comp file diff and the per-node diff |
| `timeline` | Reads an OTIO timeline and returns which comp each clip maps to and any missing or surplus footage |

## View and compare

| Command | When to use it |
| --- | --- |
| `preview` | View-transformed PNG / JPEG. `--region` to zoom in, `--compare-with git:HEAD~1` for A/B, `--frames` for a filmstrip. `--pipe` for a stream for video |
| `compare` | The difference between two targets. ΔE (CIEDE2000), PSNR, fraction over a threshold, difference heat map. A target is a comp, an image or a git revision |
| `review` | Opens the review window (for people) |
| `viewer` | Reads what a person is looking at in the review window (frame, region, node, cursor) |
| `controls` | Puts named parameters in the review window as sliders |
| `override` | Temporary session-only overrides (`set`, `mute`, `unmute`, `solo`, `clear`, `list`). Never written to the comp file |

## Write and maintain

| Command | When to use it |
| --- | --- |
| `render` | Without `--out`, evaluates only (fills the cache). `--out` for an EXR image sequence, `--pipe` for a frame stream, `--job` for a reproducible render of a pinned commit |
| `dest` | Checks whether a file you write yourself (ffmpeg output and so on) may be placed at a location |
| `proxy build` | Builds source proxies |
| `prov add` | Records the provenance of footage made outside in `lamino.lock` |
| `color verify` | Checks the project's OCIO config against the results of the C++ OpenColorIO. Once per project |

## Run in the background

| Command | When to use it |
| --- | --- |
| `dev` | Watches the comp file and footage, and on every save streams check, lint, stats and lock updates as JSON lines |
| `mcp` | MCP server over stdio |

## Common forms

```sh
lamino inspect '$SHOTS/SHOW/010/plate/A001_C003.####.dpx' --stats --json
lamino check shots/010/010.comp.ts --json
lamino probe shots/010/010.comp.ts --node lit --frame 1032 --pixel 0.62,0.18 --json
lamino preview shots/010/010.comp.ts --frame 1032 --region 0,0,0.5,0.28 --compare-with git:HEAD~1 --json
lamino compare shots/010/010.comp.ts 'git:HEAD~1:shots/010/010.comp.ts' --frame 1032 --json
lamino render shots/010/010.comp.ts --frames 1001-1120 --out '$OUT/SHOW_010_v001/SHOW_010.####.exr' --json
```

Put aliases such as `$SHOTS` in single quotes so that the shell does not expand them.

## Common options

| Option | Meaning |
| --- | --- |
| `--json`, `--human`, `--pretty` | Output format |
| `--project <PATH>` | Project location. By default it is found from the comp file or the current folder |
| `--backend <auto\|cpu\|gpu\|gpu-software>` | Where to run. Precedence is this flag, then `eval.backend`, then `auto` |
| `--proxy <1\|2\|4\|8>` | Proxy factor for evaluation |
| `--cache-dir <DIR>`, `--no-disk-cache` | Disk cache |
| `--workers <N>` | Number of frames evaluated at once |
| `-v`, `-q`, `--log-json` | Logging to stderr |

The environment variable `LAMINO_GPU` changes how the adapter is chosen. `software` starts at the software adapter, and `hardware` requires the hardware GPU. An agent that has not been given the shared GPU sets `LAMINO_GPU=software`.
