Overview
--print flag (short form -p):
Basic Usage
-p:
Output Format
--output-format (short form -o) to specify the output format. The default is text:
Example:
--input-format, supporting text and stream-json. When using stream-json input, you can continuously send Structured Messages via standard input.
Common Flags
For a complete list of flags, see CLI Startup Arguments Reference.
Permission Control
- In plain text Headless mode, any operation that “requires confirmation” defaults to deny. If driven by a Host Application via the stream-json protocol (e.g., Agent SDK), confirmation requests are forwarded to the Host Application for decision. See “Consumption methods of
askin different runtime environments” in Permissions. - Use
--permission-mode accept_editsto automatically approve safe file edits within the working directory. - Use
--yolo(equivalent to--permission-mode bypass_permissions) to skip all confirmations. This is only recommended for use in fully trusted environments.
CI/CD Example
json to make it easier for subsequent pipeline steps to parse Qoder’s results.