using changedcli-sdks-libraries/cli/using
Nearest release: v2.1.304, published under an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+1added
Lines−8removed
From line
89
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits11to this page, all time
The whole hunk
from line 89, old and new numbered
/
from line 89
8989 --name "My Agent" \
9090 --model '{id: claude-opus-5-5}' \
9191 --transform id --raw-output)
92
93printf '%s\n' "$AGENT_ID"
9492```
9593
96```text Output wrap
97agent_011CYm1BLqPXpQRk5khsSXrs
98```
99
10094<Note>
10195 `--raw-output` is distinct from `--format raw`. `--raw-output` strips JSON quotes from string results, like `jq -r`. `--format raw` prints the response body's raw JSON bytes without auto-paginating; on list endpoints it applies `--transform` to the pagination envelope rather than to each item.
10296</Note>
from line 167
173167 --message '{role: user, content: [
174168 {type: document, source: {type: base64, media_type: application/pdf, data: "@./scan.pdf"}},
175169 {type: text, text: "Extract the text from this scanned document."}
176 ]}' \
177 --transform 'content.#(type=="text").text' --raw-output
170 ]}'
178171```
179172
180173The CLI detects the file type and encodes binary files as base64 automatically. To force a specific encoding use `@file://` for plain text or `@data://` for base64. Escape a literal leading `@` with a backslash (`\@username`).
No line in this hunk matches that.