claude -p 'Add input validation to the login form'
Run Claude Code with a one-shot prompt (non-interactive)
-p (--print) runs a single prompt and exits. Useful for scripting or running Claude Code in CI pipelines. Claude reads the codebase, makes changes, and outputs a summary. Combine with --output-format json for programmatic use.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.