Claude Code · Sessions and flags
Get machine-readable output
Return the result as JSON so scripts can parse it.
claude -p "list the TODOs" --output-format json
Official Claude Code documentation
Claude Code · Sessions and flags
Return the result as JSON so scripts can parse it.
claude -p "list the TODOs" --output-format json
Official Claude Code documentation
Was this page helpful?