01Jobs it does
Each one is a real command line. Copy it, or open it in the builder below to change it.
Landing Pages
p202 landing-page 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 landing-page list aff_campaign_id etag landing_page_id landing_page_id_public landing_page_nickname landing_page_type landing_page_url leave_behind_page_url user_id version --------------- ------------------------------------------ --------------- ---------------------- --------------------- ----------------- -------------------------------------- --------------------- ------- ---------------------------------------- 4 "9e0d2b21f11dd4b2e6c575343c422b4c5d112f0a" 3 234 Pricing Page 0 https://app.example.com/pricing 1 9e0d2b21f11dd4b2e6c575343c422b4c5d112f0a 3 "2d22841e0159ec2bdbcef957bcc95eed71339433" 2 124 Desk Configurator 0 https://example.com/uk/desks/configure 1 2d22841e0159ec2bdbcef957bcc95eed71339433 1 "41ebb51819dbac262f335d401f0db4193b1f8e6c" 1 313 Spring Lookbook 0 https://example.com/lookbook/spring 1 41ebb51819dbac262f335d401f0db4193b1f8e6c Total: 3 | Limit: 50 | Offset: 0
$ p202 landing-page list --json { "data": [ { "aff_campaign_id": 4, "etag": "\"9e0d2b21f11dd4b2e6c575343c422b4c5d112f0a\"", "landing_page_id": 3, "landing_page_id_public": 234, "landing_page_nickname": "Pricing Page", "landing_page_type": 0, "landing_page_url": "https://app.example.com/pricing", "leave_behind_page_url": "", "user_id": 1, "version": "9e0d2b21f11dd4b2e6c575343c422b4c5d112f0a" }, { "aff_campaign_id": 3, "etag": "\"2d22841e0159ec2bdbcef957bcc95eed71339433\"", "landing_page_id": 2, "landing_page_id_public": 124, "landing_page_nickname": "Desk Configurator", "landing_page_type": 0, "landing_page_url": "https://example.com/uk/desks/configure", "leave_behind_page_url": "", "user_id": 1, "version": "2d22841e0159ec2bdbcef957bcc95eed71339433" }, { "aff_campaign_id": 1, "etag": "\"41ebb51819dbac262f335d401f0db4193b1f8e6c\"", "landing_page_id": 1, "landing_page_id_public": 313, "landing_page_nickname": "Spring Lookbook", "landing_page_type": 0, "landing_page_url": "https://example.com/lookbook/spring", "leave_behind_page_url": "", "user_id": 1, "version": "41ebb51819dbac262f335d401f0db4193b1f8e6c" } ], "pagination": { "cursor": null, "cursor_expires_at": null, "limit": 50, "offset": 0, "total": 3 } }
03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 landing-page listSet flags below; the command updates as you type.
04Flags
7 flags, plus the global flags every command takes.
| Flag | What it does |
|---|---|
| --aff-campaign-idstring | Filter by campaign ID (from p202 campaign list) |
| --allbool | Fetch all rows across pages |
| --limit, -lstring | Max results |
| --offset, -ostring | Pagination offset |
| --pagestring | Page number |
| --resolve-namesbool | Resolve foreign key IDs to names |
| --url-containsstring | Only landing-pages with a URL containing this text (case-insensitive; searches every page; fields: landing_page_url, leave_behind_page_url) |
05For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands landing-page 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, 6 no Pro licence on the install.
{
"path": "p202 landing-page list",
"use": "list",
"short": "List landing pages (pre-sell pages visitors see before the offer)",
"runnable": true,
"tasks": [
{
"run": "p202 landing-page list",
"ui_pages": [
"Setup › Landing Pages"
]
}
],
"flags": [
{
"name": "aff-campaign-id",
"type": "string",
"default": "",
"usage": "Filter by campaign ID (from `p202 campaign list`)",
"required": false
},
{
"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
},
{
"name": "page",
"type": "string",
"default": "",
"usage": "Page number",
"required": false
},
{
"name": "resolve-names",
"type": "bool",
"default": "false",
"usage": "Resolve foreign key IDs to names",
"required": false
},
{
"name": "url-contains",
"type": "string",
"default": "",
"usage": "Only landing-pages with a URL containing this text (case-insensitive; searches every page; fields: landing_page_url, leave_behind_page_url)",
"required": false
}
]
}