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 "d06e2ebaed73259a9fb7567b53e351b9263484ce" 3 335 Pricing Page 0 https://app.example.com/pricing 1 d06e2ebaed73259a9fb7567b53e351b9263484ce 3 "b7c0acaf8e53a620f5c30e125b1ac00d8135e96a" 2 223 Desk Configurator 0 https://example.com/uk/desks/configure 1 b7c0acaf8e53a620f5c30e125b1ac00d8135e96a 1 "ef96067cd5894ddb8f249bc7021164e3aba494bc" 1 212 Spring Lookbook 0 https://example.com/lookbook/spring 1 ef96067cd5894ddb8f249bc7021164e3aba494bc Total: 3 | Limit: 50 | Offset: 0
$ p202 landing-page list --json { "data": [ { "aff_campaign_id": 4, "etag": "\"d06e2ebaed73259a9fb7567b53e351b9263484ce\"", "landing_page_id": 3, "landing_page_id_public": 335, "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": "d06e2ebaed73259a9fb7567b53e351b9263484ce" }, { "aff_campaign_id": 3, "etag": "\"b7c0acaf8e53a620f5c30e125b1ac00d8135e96a\"", "landing_page_id": 2, "landing_page_id_public": 223, "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": "b7c0acaf8e53a620f5c30e125b1ac00d8135e96a" }, { "aff_campaign_id": 1, "etag": "\"ef96067cd5894ddb8f249bc7021164e3aba494bc\"", "landing_page_id": 1, "landing_page_id_public": 212, "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": "ef96067cd5894ddb8f249bc7021164e3aba494bc" } ], "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.
{
"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
}
]
}