CLI commands and flags

--include-hook-events

Streams hook lifecycle progress and responses in JSON streaming output.

Syntax

--include-hook-events

Example

Terminal
claude -p --output-format stream-json --verbose --include-hook-events "query"

Type to search the reference, templates and lessons.