Source Intelligence
Sweep 28 Aug 2026 ยท 16:06Z Build v2.1.251 479 read Stable v2.1.236 Latest v2.1.250 Next v2.1.251 Feeds RSS JSON llms.txt

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

Search the documentation

17 pages for --print.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Manage multiple agents with agent view Claude Code CLI · in the page agent-view …, not a `-p` value. Claude Code rejects `--bg` combined with `-p` or `--print` before any session is created, because `--print` never starts the interactive session that `claude agents` attaches to.… Claude Code changelog Claude Code CLI · in the page changelog …e --bg` silently creating an unattachable session when combined with `--print`/`-p`; the conflicting flags are now rejected up front * Fixed the workflow progress view dropping the earliest agents f… CLI reference Claude Code CLI · in the page cli-reference …h `--agent` to run a specific subagent. Cannot be combined with `-p`/`--print`; see the [error reference](/docs/en/errors#command-line-errors)… Desktop application Claude Code CLI · in the page desktop …| | `--print`, `--output-format` | Not available. Desktop is interactive only.… Claude Desktop on Linux (beta) Claude Code CLI · in the page desktop-linux …s.claude.ai/claude-desktop/apt/stable/dists/stable/main/binary-$(dpkg --print-architecture)/Packages" | grep '^Filename: pool/main/c/claude-desktop/claude-desktop_' | sort -V | tail -n 1 | cut -d' ' -… Error reference Claude Code CLI · in the page errors …date) | | `--bg and --print conflict`… Glossary Claude Code CLI · in the page glossary …prompt and exits without an interactive prompt, invoked with `-p` or `--print`. Used for CI, scripts, and piping. The run is still saved as a resumable session unless you pass `--no-session-persistenc… Run Claude Code programmatically Claude Code CLI · in the page headless …ion](/docs/en/agent-sdk/overview). ## Basic usage Add the `-p` (or `--print`) flag to any `claude` command to run it non-interactively. Not every [CLI option](/docs/en/cli-reference) combines with `… Model configuration Claude Code CLI · in the page model-config …ort` runs at the cap instead. In interactive sessions and plain-text `--print` runs, a warning names the requested and applied levels; with `json` or `stream-json` output or in background agents, the… Authorization Model Context Protocol · in the page docs/2026-07-28/tools/inspector/authorization …wser runs on a different machine, forward the callback port to it; `--print-handoff` (below) prints a ready-made `portForwardCmd`. </Warning> <Note> Redirect URIs must match your registration *… CLI client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/cli …pector/authorization) for the full flow, the web-to-CLI handoff, and `--print-handoff`. ## Recipes ### Verify a server in CI ```bash theme={null} set -euo pipefail # Fail the build if the server c… Configuration and flags Model Context Protocol · in the page docs/2026-07-28/tools/inspector/configuration …ed-auth-only`, `--relogin`, `--wait-for-auth`, `--list-stored-auth`, `--print-handoff` | ## Environment variables Environment variables split the same way as flag… Web client Model Context Protocol · in the page docs/2026-07-28/tools/inspector/web …ame> ## Deep links A driver (a script, a CI harness, or the CLI's [`--print-handoff`](/docs/2026-07-28/tools/inspector/authorization#handing-off-from-the-web-client-to-the-cli)) can reach a *connect… Authorization Model Context Protocol · in the page docs/draft/tools/inspector/authorization …wser runs on a different machine, forward the callback port to it; `--print-handoff` (below) prints a ready-made `portForwardCmd`. </Warning> <Note> Redirect URIs must match your registration *… CLI client Model Context Protocol · in the page docs/draft/tools/inspector/cli …pector/authorization) for the full flow, the web-to-CLI handoff, and `--print-handoff`. ## Recipes ### Verify a server in CI ```bash theme={null} set -euo pipefail # Fail the build if the server c… Configuration and flags Model Context Protocol · in the page docs/draft/tools/inspector/configuration …ed-auth-only`, `--relogin`, `--wait-for-auth`, `--list-stored-auth`, `--print-handoff` | ## Environment variables Environment variables split the same way as flag… Web client Model Context Protocol · in the page docs/draft/tools/inspector/web …ame> ## Deep links A driver (a script, a CI harness, or the CLI's [`--print-handoff`](/docs/draft/tools/inspector/authorization#handing-off-from-the-web-client-to-the-cli)) can reach a *connected* I…