CLI commands and flags

--print

Runs Claude Code non-interactively and prints the response directly to standard output.

Syntax

--print

Example

Terminal
claude -p "query"

Type to search the reference, templates and lessons.