01Run it
Straight from the command's own help.
p202 landing-page create --landing-page-url <landing_page_url> --aff-campaign-id <id from p202 campaign list> --landing-page-nickname <landing_page_nickname> --json02What 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 create --landing-page-nickname "Spring Lookbook" --landing-page-url https://example.com/lookbook/spring --aff-campaign-id 1 aff_campaign_id: 1 etag: "1a9a9ac9c915e8f181a10a0a64ab96899baf5ba6" landing_page_id: 4 landing_page_id_public: 841 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: 1a9a9ac9c915e8f181a10a0a64ab96899baf5ba6
03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 landing-page createSet flags below; the command updates as you type.
04Flags
6 flags, plus the global flags every command takes.
| Flag | What it does |
|---|---|
| --aff-campaign-idstringrequired | Campaign ID (from p202 campaign list); 0 for an advanced landing page (--landing-page-type 1), which promotes several offers (required) |
| --idempotency-keystring | Retry-safe create: the server records the response under this key and replays it on a retry with the same key and payload instead of creating a duplicate |
| --landing-page-nicknamestringrequired | Landing page nickname (required) |
| --landing-page-typestring | Landing page type: 0 simple (one campaign), 1 advanced (several offers; --aff-campaign-id 0) |
| --landing-page-urlstringrequired | Landing page URL (required) |
| --leave-behind-page-urlstring | Leave-behind page URL |
05For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands landing-page create --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.
- This command writes. Add
--stagedto record it as a proposal a person applies withp202 change apply.
{
"path": "p202 landing-page create",
"use": "create",
"short": "Create a new landing-page",
"runnable": true,
"example": "p202 landing-page create --landing-page-url <landing_page_url> --aff-campaign-id <id from p202 campaign list> --landing-page-nickname <landing_page_nickname> --json",
"flags": [
{
"name": "aff-campaign-id",
"type": "string",
"default": "",
"usage": "Campaign ID (from `p202 campaign list`); 0 for an advanced landing page (--landing-page-type 1), which promotes several offers (required)",
"required": true
},
{
"name": "idempotency-key",
"type": "string",
"default": "",
"usage": "Retry-safe create: the server records the response under this key and replays it on a retry with the same key and payload instead of creating a duplicate",
"required": false
},
{
"name": "landing-page-nickname",
"type": "string",
"default": "",
"usage": "Landing page nickname (required)",
"required": true
},
{
"name": "landing-page-type",
"type": "string",
"default": "",
"usage": "Landing page type: 0 simple (one campaign), 1 advanced (several offers; --aff-campaign-id 0)",
"required": false
},
{
"name": "landing-page-url",
"type": "string",
"default": "",
"usage": "Landing page URL (required)",
"required": true
},
{
"name": "leave-behind-page-url",
"type": "string",
"default": "",
"usage": "Leave-behind page URL",
"required": false
}
]
}