codeteleport pull
Synopsis
Section titled “Synopsis”codeteleport pull [--session-id <id>] [--target-dir <path>] [--machine <name>]Description
Section titled “Description”The pull command downloads a session from CodeTeleport cloud storage and installs it into the local Claude Code data directory (~/.claude/projects/). After installation, you can resume the session with claude --resume.
If no --session-id is provided, the command fetches your cloud sessions and presents an interactive picker. You always see a confirmation before any download starts.
During installation, all paths inside the session are automatically rewritten to match the current machine’s username and directory structure. A session pushed from /Users/alice/workspace/myapp on one machine will be correctly mapped to /Users/bob/projects/myapp on another. See Path Rewriting for how this works.
| Flag | Description |
|---|---|
--session-id <id> | Pull a specific session by ID instead of browsing the list. |
--target-dir <path> | Anchor the session at this directory. Defaults to the current working directory. This is the project root that paths will be rewritten relative to. |
--machine <name> | Filter the session list to only show sessions pushed from a specific machine. |
Examples
Section titled “Examples”Interactive pull (browse cloud sessions)
Section titled “Interactive pull (browse cloud sessions)”$ codeteleport pull
Cloud sessions (5 of 12):
1) api-refactor a1b2c3d4 work-laptop 847 KB 10 min ago 2) auth-bug-fix f9e8d7c6 work-laptop 1203 KB 2 hours ago 3) dashboard-ui b5a4c3d2 home-desktop 512 KB 1 day ago 4) api-refactor c7d8e9f0 work-laptop 934 KB 3 days ago 5) docs-update d1e2f3a4 home-desktop 289 KB 1 week ago
Pick a session (number): 1
Downloading...Installing...
Session pulled id : a1b2c3d4-e5f6-7890-abcd-ef1234567890 from : work-laptop to : /Users/bob/.claude/projects/-Users-bob-workspace-api
Resume with: claude --resume a1b2c3d4-e5f6-7890-abcd-ef1234567890Pull a specific session
Section titled “Pull a specific session”$ codeteleport pull --session-id a1b2c3d4-e5f6-7890-abcd-ef1234567890Downloading...Installing...
Session pulled id : a1b2c3d4-e5f6-7890-abcd-ef1234567890 from : work-laptop to : /Users/bob/.claude/projects/-Users-bob-workspace-api
Resume with: claude --resume a1b2c3d4-e5f6-7890-abcd-ef1234567890Pull into a specific directory
Section titled “Pull into a specific directory”$ codeteleport pull --target-dir ~/projects/api-serviceDownloading...Installing...
Session pulled id : a1b2c3d4-e5f6-7890-abcd-ef1234567890 from : work-laptop to : /Users/bob/.claude/projects/-Users-bob-projects-api-service
Resume with: claude --resume a1b2c3d4-e5f6-7890-abcd-ef1234567890Filter by source machine
Section titled “Filter by source machine”$ codeteleport pull --machine home-desktop
Cloud sessions (2 of 2):
1) dashboard-ui b5a4c3d2 home-desktop 512 KB 1 day ago 2) docs-update d1e2f3a4 home-desktop 289 KB 1 week ago
Pick a session (number):What happens during pull
Section titled “What happens during pull”- Download — the compressed session bundle is fetched from cloud storage to a temporary file.
- Unbundle — the archive is extracted and session files are written into
~/.claude/projects/. - Path rewriting — all absolute paths in the session data (working directory, file references, tool call arguments) are rewritten from the source machine’s paths to the current machine’s paths. See Path Rewriting.
- Cleanup — the temporary download file is removed.
Related commands
Section titled “Related commands”codeteleport push— push a session to the cloudcodeteleport list --cloud— browse cloud sessions without pullingcodeteleport delete— remove a session from the cloud