CLI commands and flags

--init-only

Executes Setup and SessionStart hooks then immediately exits.

Syntax

--init-only

Example

Terminal
claude --init-only

Type to search the reference, templates and lessons.