claude_storage 1.2.0

CLI tool for exploring Claude Code filesystem storage
Documentation
# Command :: 6. `.export`

Export a session to a file in the specified format. Use this to save a conversation for sharing, archiving, or further processing.

**Parameters:** `session_id::`, `output::`, `format::`, `project::`, `scope::`, `path::`

**Exit:** `0` success | `1` argument error (missing required params) | `2` storage read error or write error

**Syntax:**
```bash
claude_storage .export session_id::ID output::PATH
claude_storage .export session_id::ID output::PATH format::FORMAT
claude_storage .export session_id::ID output::PATH project::PROJECT
claude_storage .export session_id::ID output::PATH scope::global
```

**Parameters:**

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `session_id::` | [`SessionId`]../type/09_session_id.md | **required** || Session to export |
| `output::` | [`StoragePath`]../type/10_storage_path.md | **required** || Output file path |
| `format::` | [`ExportFormat`]../type/03_export_format.md | optional | `markdown` | Export format |
| `project::` | [`ProjectId`]../type/05_project_id.md | optional | current dir | Source project |
| `scope::` | [`ScopeValue`]../type/07_scope_value.md | optional | `local` | Project search boundary |
| `path::` | [`StoragePath`]../type/10_storage_path.md | optional | cwd | Scope anchor path |

`session_id::` belongs to [Session Identification](../param_group/03_session_identification.md). `project::` belongs to [Project Scope](../param_group/02_project_scope.md). `scope::` and `path::` belong to the [Scope Configuration group](../param_group/05_scope_configuration.md).

**Examples:**
```bash
# Export as markdown (default)
claude_storage .export session_id::-default_topic output::conversation.md

# Export as JSON for programmatic use
claude_storage .export session_id::abc123 format::json output::session.json

# Export as plain text
claude_storage .export session_id::-default_topic format::text output::transcript.txt

# Export a session found anywhere in storage
claude_storage .export session_id::ID output::PATH scope::global
```

**Notes:**
- Both `session_id::` and `output::` are required; command exits with `1` if either is missing
- Output file is overwritten without warning if it already exists

### Referenced Formats

| # | Format | Role |
|---|--------|------|
| 1 | [markdown]../format/01_markdown.md | Default human-readable transcript output |
| 2 | [json]../format/02_json.md | Machine-parseable structured export |
| 3 | [text]../format/03_text.md | Plain text transcript output |

### Referenced Parameter Groups

| # | Group | Membership | Excluded Params |
|---|-------|------------|-----------------|
| 2 | [Project Scope]../param_group/02_project_scope.md | Full ||
| 3 | [Session Identification]../param_group/03_session_identification.md | Full ||
| 5 | [Scope Configuration]../param_group/05_scope_configuration.md | Full ||

### Referenced User Stories

| # | User Story | Persona |
|---|------------|---------|
| 3 | [Export Session for Review]../user_story/003_export_session_for_review.md | developer |