Claude Code · Sessions and flags
Run one prompt and exit
Print mode runs the prompt, prints the answer and exits, which suits scripts.
claude -p "summarize this repository"
Official Claude Code documentation
Claude Code · Sessions and flags
Print mode runs the prompt, prints the answer and exits, which suits scripts.
claude -p "summarize this repository"
Official Claude Code documentation
Was this page helpful?