<!-- GENERATED FILE — do not edit. Rebuilt by scripts/docs_site/generate_reference.py from openprogram/interfaces/cli/parser.py. -->


# transcript

Write the transcript of the --print run a state directory holds, one JSON record per line, as --transcript-file writes it.

```text
usage: openprogram transcript [-h] [--state DIR] [--session ID]
                              [--output PATH]
```

## Options

| Option | Description |
|---|---|
| `--state` `DIR` | State directory to read (default: the active profile's) |
| `--session` `ID` | Conversation to read; needed when the state holds more than one |
| `--output`, `-o` `PATH` | Write the transcript here instead of stdout |
