claude --session-id
Use a specific session UUID.
Example
claude --session-id "550e8400-e29b-41d4-a716-446655440000"Source: Claude Code CLI reference, checked 2026-10-24.
More flags
- --fork-session: When resuming, create a new session ID instead of reusing the original.
- --effort: Set the effort level for the session.
- --worktree, -w: Start in an isolated git worktree.