scripting changedcli-sdks-libraries/cli/scripting
Nearest release: v2.1.307, published 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+2added
Lines−2removed
From line
72
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits10to this page, all time
The whole hunk
from line 72, old and new numbered
/
from line 72
7272
7373### Chain list output into a second command
7474
75`--transform id --raw-output` on a list endpoint emits one bare ID per line, so standard tools such as `head` and `xargs` apply directly. Capture the first result, then pass it to a follow-up command:
75`--transform id --raw-output` on a list endpoint emits one bare ID on each line, so standard tools such as `head` and `xargs` apply directly. Capture the first result, then pass it to a follow-up command:
7676
7777```bash
7878FIRST_AGENT=$(ant beta:agents list --transform id --raw-output | head -1)
from line 104
104104* "Upload every PDF in `./reports` to the Files API and print the resulting IDs."
105105* "Pull the events for session `session_01...` and tell me where the agent got stuck."
106106
107Claude Code shells out to `ant`, parses the structured output, and reasons over the results (no custom integration code required).
107Claude Code runs `ant` commands, parses the structured output, and reasons over the results (no custom integration code required).
108108
109109## Authenticate curl requests with CLI credentials
110110
No line in this hunk matches that.