Cmd. /export
Export the complete TUI conversation as Markdown to the clipboard or a new file.
Key takeaways
- Export the complete TUI conversation as Markdown to the clipboard or a new file.
- Check the input surface and availability before using the examples below.
Purpose
Export the complete TUI conversation as Markdown to the clipboard or a new file.
/exportAvailability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Release-tracked |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-09-22 · Codex CLI 0.155.1 |
| Release evidence | v0.148.0 |
This entry is absent from the current command table or tracked separately through releases. Check the evidence and installed build.
Examples
/exportChoose the clipboard or a new Markdown file as the destination.
When to use it
- Preserve a long investigation as evidence for a team document or issue.
- Save a reproducible work record as a Markdown artifact.
- Export a migration or incident-response conversation for retrospective review.
Choosing related commands
| Command | Difference | Choose It When |
|---|---|---|
/export | Exports the complete TUI conversation | You need the whole work record |
/copy | Copies the latest completed response | You only need the latest result |
/raw | Simplifies terminal scrollback | You want to select part of the visible transcript manually |
Effects and persistence
Exports conversation content to the supported destination. Code and local paths in the conversation may be included.
/export exports the complete current TUI conversation as Markdown to the clipboard or a new file.
Cautions
- The exported file contains conversation content; check its destination and whether it belongs in the repository.
- Remove secrets, access tokens, customer data, and local absolute paths before external sharing.
- Do not treat conversation export as a replacement for structured audit logs or retention policy.
Official sources
Complete command list · Verification scope · History for this command