Answer: You set the output format for the Cursor Agent CLI with the `--output-format` option when combined with `--print`. The available formats are `json`, `stream-json`, and `text`, with `text` being the default. Status: Confirmed Entry: tool/cursor/commands-and-shortcuts/set-output-format Revision: 1 Digest: sha256:49e1a9d3fee4e3a2 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:09:42Z Last changed: 2026-11-13T03:09:42Z Last verified: 2026-11-20T12:35:46Z Next check: 2026-11-21T12:35:46Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of option | --output-format | [1] | 2026-11-20 default format | text | [1] | 2026-11-20 available formats | json | [1] | 2026-11-20 required flag | --print | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/cli/reference/output-format.md". https://cursor.com/docs/cli/reference/output-format.md Role: primary. Accessed: 2026-11-20T12:35:46Z Quote: "The Cursor Agent CLI provides multiple output formats with the `--output-format` option when combined with `--print`." (Supports: option) Quote: "The default `--output-format` is `text`." (Supports: default format) Quote: "These formats include structured formats for programmatic use (`json`, `stream-json`) and a simplified text format for human-readable output (`text`)." (Supports: available formats) Quote: "This option is only valid when printing (`--print`) or when print mode is inferred (non-TTY stdout or piped stdin)." (Supports: required flag) Snapshot SHA-256: add17086b1b46485b73e24e995a5f69f16bcdb0f5f9f94f5f86cadb506063d69 (captured 2026-11-13T03:09:42Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:09:42Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:35:46Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:35:46Z Last attempt: 2026-11-20T12:35:46Z Notes and limitations: Extracted automatically from a single official source (section "Output format"). Related: https://latestn.com/tool/cursor/commands-and-shortcuts/shell-mode-command-timeout How long does a command run in Cursor Shell Mode before it times out? https://latestn.com/tool/cursor/commands-and-shortcuts/slack-commands-options What commands and options can I use with Cursor in Slack? https://latestn.com/tool/cursor/commands-and-shortcuts/stack-command-targets What targets can Cursor Origin stack commands accept? https://latestn.com/tool/cursor/commands-and-shortcuts/replay-github-pr How do I replay a GitHub pull request with the Cursor agent-sdk? https://latestn.com/tool/cursor/commands-and-shortcuts/run-command-in-other-directory How do I run a command in a different directory in Cursor Shell Mode? https://latestn.com/tool/cursor/commands-and-shortcuts/run-security-review-in-agent How do I run a security review in my own Cursor agent before pushing? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:09:42Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/commands-and-shortcuts/set-output-format/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/commands-and-shortcuts/set-output-format POST: https://latestn.com/dispute/tool/cursor/commands-and-shortcuts/set-output-format with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/commands-and-shortcuts/set-output-format?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set the output format for the Cursor Agent CLI? Revision 1, last verified 2026-11-20T12:35:46Z. https://latestn.com/tool/cursor/commands-and-shortcuts/set-output-format (accessed 2026-11-21T10:03:41Z). @misc{LatestN_tool_cursor_commands_and_shortcuts_set_output_format_r1, title = {How do I set the output format for the Cursor Agent CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/commands-and-shortcuts/set-output-format}}, note = {Revision 1; digest sha256:49e1a9d3fee4e3a2; last verified 2026-11-20T12:35:46Z; accessed 2026-11-21T10:03:41Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/commands-and-shortcuts/set-output-format