scripting changedcli-sdks-libraries/cli/scripting
Nearest release: v2.1.239, published 2 hours 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+1added
Lines−2removed
From line
148
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 148, old and new numbered
/
from line 148
148148`--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:
149149
150150```bash
151FIRST_AGENT=$(ant beta:agents list \
152 --transform id --raw-output | head -1)
151FIRST_AGENT=$(ant beta:agents list --transform id --raw-output | head -1)
153152
154153ant beta:agents:versions list \
155154 --agent-id "$FIRST_AGENT" \
No line in this hunk matches that.