using changedcli-sdks-libraries/cli/using
Nearest release: v2.1.280, published under an hour before 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+13added
Lines−13removed
From line
20
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits16to this page, all time
The whole hunk
from line 20, old and new numbered
/
from line 20
2020
2121```bash
2222ant models list
23ant messages create --model claude-opus-5 --max-tokens 1024 ...
23ant messages create --model claude-opus-5-5 --max-tokens 1024 ...
2424ant beta:agents retrieve --agent-id agent_01...
2525ant beta:sessions:events list --session-id session_01...
2626```
from line 43
4343`auto` pretty-prints JSON and is the default for commands that create or modify resources. List and retrieve commands default to the [interactive explorer](https://platform.claude.com/docs/en/cli-sdks-libraries/cli/using#interactive-explorer) when writing to a terminal, and to pretty-printed JSON when piped. Override either default with `--format`:
4444
4545```bash
46ant models retrieve --model-id claude-opus-5 --format yaml
46ant models retrieve --model-id claude-opus-5-5 --format yaml
4747```
4848
4949```yaml Output
5050type: model
51id: claude-opus-5
52display_name: Claude Opus 5
53created_at: "2026-07-24T00:00:00Z"
51id: claude-opus-5-5
52display_name: Claude Opus 5.5
53created_at: "2026-09-22T00:00:00Z"
5454...
5555```
5656
from line 75
7575```
7676
7777```jsonl Output
78{"id": "agent_011CYm1BLqPX...", "name": "Docs CLI Test Agent", "model": "claude-opus-5"}
79{"id": "agent_011CYkVwfaEt...", "name": "Coffee Making Assistant", "model": "claude-opus-5"}
80{"id": "agent_011CYixHhtUP...", "name": "Coding Assistant", "model": "claude-opus-5"}
78{"id": "agent_011CYm1BLqPX...", "name": "Docs CLI Test Agent", "model": "claude-opus-5-5"}
79{"id": "agent_011CYkVwfaEt...", "name": "Coffee Making Assistant", "model": "claude-opus-5-5"}
80{"id": "agent_011CYixHhtUP...", "name": "Coding Assistant", "model": "claude-opus-5-5"}
8181```
8282
8383### Extract a scalar
from line 87
8787```bash
8888AGENT_ID=$(ant beta:agents create \
8989 --name "My Agent" \
90 --model '{id: claude-opus-5}' \
90 --model '{id: claude-opus-5-5}' \
9191 --transform id --raw-output)
9292
9393printf '%s\n' "$AGENT_ID"
from line 121
121121```bash
122122ant beta:agents create \
123123 --name "Research Agent" \
124 --model '{id: claude-opus-5}' \
124 --model '{id: claude-opus-5-5}' \
125125 --tool '{type: agent_toolset_20260401}' \
126126 --tool '{type: custom, name: search_docs, input_schema: {type: object, properties: {query: {type: string}}}}'
127127```
from line 140
140140```bash
141141ant beta:agents create <<'YAML'
142142name: Research Agent
143model: claude-opus-5
143model: claude-opus-5-5
144144system: |
145145 You are a research assistant. Cite sources for every claim.
146146tools:
from line 160
160160
161161```bash
162162ant beta:agents create \
163 --name "Researcher" --model '{id: claude-opus-5}' \
163 --name "Researcher" --model '{id: claude-opus-5-5}' \
164164 --system @./prompts/researcher.txt
165165```
166166
from line 168
168168
169169```bash
170170ant messages create \
171 --model claude-opus-5 \
171 --model claude-opus-5-5 \
172172 --max-tokens 1024 \
173173 --message '{role: user, content: [
174174 {type: document, source: {type: base64, media_type: application/pdf, data: "@./scan.pdf"}},
No line in this hunk matches that.