# CLI

> From README.md at modelpin 0.5.7: https://github.com/samarthputhraya/modelpin/blob/v0.5.7/README.md

| Command | What it does |
|---|---|
| `modelpin init [dir]` | Write `modelpin.yaml` and a starter scenario, configured from the models your code calls. `--demo` writes the offline sandbox; `--agent-example` adds a tool-calling agent scenario. Never overwrites. |
| `modelpin scan [path]` | List the model ids a repository (or a single file) uses, and where. |
| `modelpin watch` | Which of the models in `modelpin.yaml` (its `models:` and `judge_model`; with `--scan`, the ids in your source; your recorded baselines are listed but never alarmed on) are retiring, when, the successor the vendor names, and the exact `check` command; every date carries its source page and fetch date. Exit `0` all clear, `1` a model is inside its notice window (a vendor deprecation, or a shutdown date within 90 days) or already retired, `3` a model is unknown to the registry (not a clearance; ids served by OpenAI-compatible hosts are unknown by design, since the registry reads the three labs' own pages), `4` nothing declared, or the config or registry could not be read. `--json` for scripts; `--registry <path>` to use a different `data/models.json` in place of the shipped one. Never touches the network. |
| `modelpin draft <file>` | Draft scenarios from one file of your app into `scenarios/.drafts/` for review (one model call). `--count`, `--model`, `--provider`. |
| `modelpin baseline` | Run every scenario N times on your current model and save the results. |
| `modelpin check --to <model>` | Replay on a candidate, compare with the baseline, print verdicts, write the report, exit `0`/`1`/`3`/`4`. |
| `modelpin report --to <new> --from <old> --suite-dir <dir>` | Replay a scenario suite on two models and write a reproducible, publishable Markdown report plus a JSON sidecar under `reports/`. Always exits 0. |
| `modelpin version` | Print the version. |

Common flags for `baseline` and `check`: `--provider`, `--runs`, `--config`, `--scenarios-dir`,
`--store-dir`, and `--fixtures` (required with `--provider fake`). `baseline` takes `--model`;
`check` takes `--from`, `--match strict|unordered|subset|superset` (how strictly tool-call
sequences must agree; a scenario's own `"match"` overrides it) and `--no-confirm`. Run any command
with `--help` for details.
