--init
Triggers init Setup hooks prior to starting the session in print mode.
Syntax
--initExample
Terminal
claude -p --init "query"Progress will not be saved. This browser is blocking storage (often private browsing). You can still learn, but closing the tab loses your progress.
--initTriggers init Setup hooks prior to starting the session in print mode.
--initclaude -p --init "query"