Updated Edit
On this page
Import Claude Code session data from an external directory into the shared store, remapping recorded project paths and reassigning colliding session UUIDs.
#c import
import session data from an external Claude Code directory
Effect: mutating
#Flags
| Name | Short | Type | Presence | Env | Description |
|---|---|---|---|---|---|
--reid, --no-reid | bool | optional | assign new UUIDs to sessions that collide with existing local sessions; when omitted, a collision is reported instead | ||
--from | list[str] | default: [] | original project path as recorded in the source session data (repeatable) | ||
--to | list[str] | default: [] | local directory path that corresponds to the --from path on this machine (repeatable) |
Flag sets:
mapping----from,--to
#Arguments
| Name | Type | Presence | Description |
|---|---|---|---|
source | str | required | path to the source directory (e.g., /path/to/backup/.claude) |
#Constraints
The framework enforces these before the command runs.
| Rule | What it requires |
|---|---|
path-mapping | All or none of --from (when supplied), --to (when supplied). |