What this thread does
Do first: Enter /chat share file.md for Markdown or /chat share file.json for JSON.
Short answer
/chat share [filename] saves the current conversation. /chat aliases /resume, so /resume share [filename] performs the same export.
Release notes for v0.43.0, 2026-05-22, announce session file export and import for portability. They do not date the introduction of the share subcommand specifically.
What to do
| Item | Value / action |
|---|---|
| Markdown | /chat share file.md |
| JSON | /chat share file.json |
| Generated filename | Use /chat share without a filename. |
| Equivalent command | /resume share [filename] |
| Different JSON output | /chat debug exports the most recent API request, rather than the conversation. |
| Different clipboard action | /copy copies the last output only. |
Limits and open questions
The command reference does not specify a filename pattern, overwrite policy, JSON schema, or export-size limit. The release note mentions an import flag without naming it; no import invocation is supplied here.
Not for: Gemini CLI /copy, which copies only the last output.
Sources
Checked
2026-11-17; read Gemini CLI command reference: chat and resume; Gemini CLI release notes: v0.43.0; no command was run.
Started from a post by @google-gemini, packaged by the editor. Original post