# /export Command

> It saves the whole chat as a plain text file.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** /export, Export conversation

## Think of it like

It is like you print a whole chat to keep it.

## Definition

/export saves the current conversation as plain text. Give it a file name and it writes that file. Without one, a dialog lets you copy the text or save it to a file. The saved text is the chat as you read it, not the session file Claude Code keeps for itself.

## Example

Emma found the cause of a hard bug with Claude's help. She runs /export and attaches the file to the bug ticket, so the team can read how it was found.

## Example code

```console
/export login-fix.txt
```

Save this chat as a text file.

## Why it matters

A good chat can be shared, saved with a ticket or read again later, outside Claude Code.

## Common mistake

Thinking the exported file can be resumed. It is text for people to read. /resume works from the saved session, not from this file.

## Three principles

- **Plain text.** The chat as you read it.
- **A name or a dialog.** File or clipboard.
- **For people.** Not for /resume.

## Related terms

- [/copy Command](https://learn.benibix.com/term/ai/copy-command)
- [Session Transcript](https://learn.benibix.com/term/ai/session-transcript)
- [/resume Command](https://learn.benibix.com/term/ai/resume-command)

## Taught in

- [Context, Recap and Copy](https://learn.benibix.com/learn/ai-claude-code-commands/context-recap-and-copy): Claude Code Commands, 5/17

---

Source: https://learn.benibix.com/term/ai/export-command
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
