# CLI reference

> Every verb of the ormaos command line, with its arguments as the argument parser of the documented version defines them.

```text
ormaos [-h] [--version] <verb> ...
```

`ormaos run` records; every other verb reads what is in `.ormaos/` of the current directory and never runs the program. The tables on these pages are read from the argument parser of ormaos at the pinned commit; the text around them explains each argument.

| Verb | From the parser |
|---|---|
| [`ormaos run`](/python/reference/cli/run.md) | run a command and record the Python processes it starts |
| [`ormaos show`](/python/reference/cli/show.md) | show the overview of a recording |
| [`ormaos tree`](/python/reference/cli/tree.md) | show the calls below an address |
| [`ormaos exceptions`](/python/reference/cli/exceptions.md) | show the exceptions of an address, swallowed first |
| [`ormaos path`](/python/reference/cli/path.md) | show the lines a call ran, in order |
| [`ormaos io`](/python/reference/cli/io.md) | show the I/O of an address: database, files, subprocesses, HTTP |
| [`ormaos logs`](/python/reference/cli/logs.md) | show the logging records of an address, also the ones the level dropped |
| [`ormaos diff`](/python/reference/cli/diff.md) | show what two recordings did differently |
| [`ormaos list`](/python/reference/cli/list.md) | list the recordings, newest first |
| [`ormaos status`](/python/reference/cli/status.md) | what ormaos can do here, and what is in .ormaos/ now |
| [`ormaos guide`](/python/reference/cli/guide.md) | how to use ormaos, for a coding agent (start here) |

## Options of `ormaos` itself

### `--version`

Prints the version and exits with `0`.

```console
$ ormaos --version
ormaos 0.0.1
```

### `-h`, `--help`

`ormaos --help` lists the verbs; `ormaos <verb> --help` describes one verb and ends with an example.

```console
$ ormaos --help
usage: ormaos [-h] [--version] <verb> ...

Records what happened inside a Python execution and shows it: what ran, how often, what was raised and caught, what I/O happened, what was not recorded. You, or your coding agent, decide whether that is what should have happened.

positional arguments:
  <verb>
    run         run a command and record the Python processes it starts
    show        show the overview of a recording
    tree        show the calls below an address
    exceptions  show the exceptions of an address, swallowed first
    path        show the lines a call ran, in order
    io          show the I/O of an address: database, files, subprocesses,
                HTTP
    logs        show the logging records of an address, also the ones the
                level dropped
    diff        show what two recordings did differently
    list        list the recordings, newest first
    status      what ormaos can do here, and what is in .ormaos/ now
    guide       how to use ormaos, for a coding agent (start here)

options:
  -h, --help    show this help message and exit
  --version     show program's version number and exit

start here:
  ormaos guide
  ormaos run -- python job.py
```

## Rules for every verb

- An option is written in full: `--lim` is not `--limit`. A shortened option exits with `2`.
- The address of a reading verb defaults to `last`, the newest recording.
- `--json` prints one JSON document on stdout, also for errors. See [JSON output](/python/reference/json-output.md).
- On a terminal the first line is bold, the addresses are colored and the `next:` line is dim. There is no color when the output is not a terminal, when `NO_COLOR` is set, or when `TERM` is `dumb`.
- Exit codes: see [Exit codes](/python/reference/exit-codes.md).

---

Source: https://docs.ormaos.com/python/reference/cli/ · ormaos 0.0.1 · ormaos-python 968f69776c · ormaos-examples 6e27be5922
