CLI commands and flags

--fork-session

Generates a fresh session ID when reopening an existing conversation.

Syntax

--fork-session

Example

Terminal
claude --resume abc123 --fork-session

Type to search the reference, templates and lessons.