> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slomo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Slomo CLI: export — Sessions and Issues to Shareable Files

> Export any session or issue to JSON, Markdown, CSV, or HTML for sharing in tickets, pull requests, or with teammates who don't have slomo installed.

`slomo export` writes a recording to a file you can share. Choose from four formats depending on your audience — machine-readable JSON, a Markdown report for tickets, a self-contained HTML page, or a CSV for spreadsheets.

```
slomo export FMT [OPTIONS]
```

<ParamField path="FMT" type="string" required>
  Output format: `json`, `markdown`, `csv`, or `html`.
</ParamField>

| Option            | Default           | Effect                                  |
| ----------------- | ----------------- | --------------------------------------- |
| `--session`, `-s` | latest            | Session id to export                    |
| `--issue`, `-i`   | —                 | Issue id to export instead of a session |
| `--out`, `-o`     | `.slomo/exports/` | Output file path                        |

## Examples

```bash theme={null}
slomo export markdown -i SM-8b6f710a               # issue → Markdown, into .slomo/exports/
slomo export html -i SM-8b6f710a -o bug-report.html
slomo export json -s a1b2c3                        # one session's raw events
slomo export csv                                   # latest session as CSV
```

## Format guide

| Format     | Contents                    | Best for                                       |
| ---------- | --------------------------- | ---------------------------------------------- |
| `markdown` | Diagnosis as prose + tables | Tickets, PR descriptions, Slack                |
| `html`     | Self-contained page         | Sharing with someone who has nothing installed |
| `json`     | Raw structured data         | Tooling, archiving                             |
| `csv`      | Tabular events              | Spreadsheets                                   |

Exports are generated from timelines that were [redacted at capture time](/recording/redaction) — but they still contain real arguments, queries, and URLs. Treat them like log files.

See the [Exporting guide](/investigating/exporting) for what issue vs. session exports include.
