-p (print mode)
Also written: claude -p
A Claude Code flag that runs one prompt without the interactive screen and prints the answer. Tools without an allow rule are refused rather than asked about.
Also written: claude -p
A Claude Code flag that runs one prompt without the interactive screen and prints the answer. Tools without an allow rule are refused rather than asked about.