01Jobs it does
Each one is a real command line. Copy it, or open it in the builder below to change it.
rotators
Also: split test offers, redirect rules
p202 rotator list02What you get
Captured from the real binary, run against a demo store with 30 days of traffic. Switch tabs to see the same run as JSON, the shape scripts and agents parse.
$ p202 rotator list id name auto_monetizer default_campaign default_lp default_url public_id user_id -- ---------------------- -------------- ---------------- ---------- ----------- --------- ------- 1 SaaS pricing geo split 4 9873485 1 Total: 1 | Limit: 50 | Offset: 0
$ p202 rotator list --json { "data": [ { "auto_monetizer": null, "default_campaign": 4, "default_lp": null, "default_url": null, "id": 1, "name": "SaaS pricing geo split", "public_id": 9873485, "user_id": 1 } ], "pagination": { "limit": 50, "offset": 0, "total": 1 } }
03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 rotator listSet flags below; the command updates as you type.
04Flags
3 flags, plus the global flags every command takes.
| Flag | What it does |
|---|---|
| --allbool | Fetch all rows across pages |
| --limit, -lstring | Max results |
| --offset, -ostring | Pagination offset |
05For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands rotator list --json. - With
AI_AGENT,CLAUDECODEor another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with ahint. - Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure.
{
"path": "p202 rotator list",
"use": "list",
"short": "List all redirectors/rotators",
"runnable": true,
"tasks": [
{
"run": "p202 rotator list",
"ui_pages": [
"Setup › Redirector"
],
"phrases": [
"rotators",
"split test offers",
"redirect rules"
]
}
],
"flags": [
{
"name": "all",
"type": "bool",
"default": "false",
"usage": "Fetch all rows across pages",
"required": false
},
{
"name": "limit",
"shorthand": "l",
"type": "string",
"default": "",
"usage": "Max results",
"required": false
},
{
"name": "offset",
"shorthand": "o",
"type": "string",
"default": "",
"usage": "Pagination offset",
"required": false
}
]
}