Docs: Session Export via CLI (#2867)

This commit is contained in:
Rizel Scarlett
2025-06-11 23:18:29 -04:00
committed by GitHub
parent 4c3a6a948e
commit 9432f3c7b5
2 changed files with 56 additions and 0 deletions

View File

@@ -185,6 +185,33 @@ Session removal is permanent and cannot be undone. Goose will show which session
---
### session export [options]
Export a session to Markdown format for sharing, documentation, or archival purposes.
**Options:**
- **`-n, --name <name>`**: Export a specific session by name
- **`-p, --path <path>`**: Export a specific session by file path
- **`-o, --output <file>`**: Save exported content to a file (default: stdout)
**Usage:**
```bash
# Export specific session to file
goose session export --name my-session --output session.md
# Export specific session to stdout
goose session export --name my-session
# Interactive export (prompts for session selection)
goose session export
# Export session by path
goose session export --path ./my-session.jsonl --output exported.md
```
---
### info [options]
Shows Goose information, including the version, configuration file location, session storage, and logs.