<!-- KeepSnappy docs for keepsnappy CLI 0.1.0-alpha.35 -->

# Reference

> The reference for the KeepSnappy command line tool and its MCP server.

The CLI reference shows the help of the latest CLI release. For an older installed CLI, check its help before copying flags. The packages that work with it are in the [compatibility table](https://keepsnappy.com/docs/install.md#versions-that-work-together).

- [CLI reference](https://keepsnappy.com/docs/reference/cli.md): every command of the `keepsnappy` command line tool, with its usage, its flags and its exit codes.
- [MCP reference](https://keepsnappy.com/docs/reference/mcp.md): every tool of the KeepSnappy MCP server, with its inputs.
- [`keepsnappy.yml` and run flags](https://keepsnappy.com/docs/settings.md): every setting `keepsnappy run` reads, with the flags of `keepsnappy run` and its exit codes.

`keepsnappy --help` names the commands a setup uses. `keepsnappy help --all` prints every command and its flags:

```sh
npx @keepsnappy/agent help --all
```

## Doctor exit rules

<span id="published-cli-help"></span>[`doctor`](https://keepsnappy.com/docs/reference/cli.md#doctor) exits `1` by group. The measure group exits `1` only for invalid project settings or an invalid simulator-set path; missing tools or devices don't fail it. The app group exits `1` when a step is missing or broken, and `WARN` doesn't fail it. The setup group exits `1` unless the account, projects and events checks are `ok`. With `--step`, it exits `1` unless that step is `ok`.

<span id="custom-ios-simulator-sets"></span>Custom iOS simulator sets are on [keepsnappy.yml and run flags](https://keepsnappy.com/docs/settings.md), under [A custom simulator set](https://keepsnappy.com/docs/settings.md#a-custom-simulator-set).

All KeepSnappy docs for agents: https://keepsnappy.com/llms.txt
