01Run it
Replace the <placeholders> with your own values, or use the builder below.
p202 change 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 change list status applied_at applied_by applying_since change_id created_at created_at_epoch created_by discarded_at discarded_by expired expires_at_epoch last_error method path payload preview resource_area summary ------- ------------------------- ---------- -------------- ---------------------------- ------------------------- ---------------- ---------- ------------ ------------ ------- ---------------- ---------- ------ ------------ ----------------------------- ------- ------------- ---------------- staged chg_dacefda211330cfd7372bf7b 2026-10-09T10:01:42+00:00 1791540102 1 false 1791626502 PUT /campaigns/4 {"aff_campaign_payout":"360"} campaigns PUT /campaigns/4 applied 2026-10-09T10:01:42+00:00 1 1791540102 chg_7c0dcc8788fde1cddbcb1341 2026-10-09T10:01:42+00:00 1791540102 1 false 1791626502 PUT /campaigns/4 {"aff_campaign_payout":"360"} campaigns PUT /campaigns/4 staged chg_0604281c44ab096c06089eae 2026-10-09T09:55:03+00:00 1791539703 1 false 1791626103 PUT /campaigns/4 {"aff_campaign_payout":"360"} campaigns PUT /campaigns/4 staged chg_d1fdf41bc0a19fdf0d2a019e 2026-10-09T09:55:03+00:00 1791539703 1 false 1791626103 PUT /campaigns/4 {"aff_campaign_payout":"360"} campaigns PUT /campaigns/4
$ p202 change list --json { "data": [ { "applied_at": null, "applied_by": null, "change_id": "chg_dacefda211330cfd7372bf7b", "created_at": "2026-10-09T10:01:42+00:00", "created_at_epoch": 1791540102, "created_by": 1, "discarded_at": null, "discarded_by": null, "expired": false, "expires_at_epoch": 1791626502, "last_error": null, "method": "PUT", "path": "/campaigns/4", "payload": { "aff_campaign_payout": "360" }, "preview": null, "resource_area": "campaigns", "status": "staged", "summary": "PUT /campaigns/4" }, { "applied_at": "2026-10-09T10:01:42+00:00", "applied_by": 1, "applying_since": 1791540102, "change_id": "chg_7c0dcc8788fde1cddbcb1341", "created_at": "2026-10-09T10:01:42+00:00", "created_at_epoch": 1791540102, "created_by": 1, "discarded_at": null, "discarded_by": null, "expired": false, "expires_at_epoch": 1791626502, "last_error": null, "method": "PUT", "path": "/campaigns/4", "payload": { "aff_campaign_payout": "360" }, "preview": null, "resource_area": "campaigns", "status": "applied", "summary": "PUT /campaigns/4" }, { "applied_at": null, "applied_by": null, "change_id": "chg_0604281c44ab096c06089eae", "created_at": "2026-10-09T09:55:03+00:00", "created_at_epoch": 1791539703, "created_by": 1, "discarded_at": null, "discarded_by": null, "expired": false, "expires_at_epoch": 1791626103, "last_error": null, "method": "PUT", "path": "/campaigns/4", "payload": { "aff_campaign_payout": "360" }, "preview": null, "resource_area": "campaigns", "status": "staged", "summary": "PUT /campaigns/4" }, { "applied_at": null, "applied_by": null, "change_id": "chg_d1fdf41bc0a19fdf0d2a019e", "created_at": "2026-10-09T09:55:03+00:00", "created_at_epoch": 1791539703, "created_by": 1, "discarded_at": null, "discarded_by": null, "expired": false, "expires_at_epoch": 1791626103, "last_error": null, "method": "PUT", "path": "/campaigns/4", "payload": { "aff_campaign_payout": "360" }, "preview": null, "resource_area": "campaigns", "status": "staged", "summary": "PUT /campaigns/4" } ] }
$ p202 change list --status applied status applied_at applied_by applying_since change_id created_at created_at_epoch created_by discarded_at discarded_by expired expires_at_epoch last_error method path payload preview resource_area summary ------- ------------------------- ---------- -------------- ---------------------------- ------------------------- ---------------- ---------- ------------ ------------ ------- ---------------- ---------- ------ ------------ ----------------------------- ------- ------------- ---------------- applied 2026-10-09T10:03:19+00:00 1 1791540199 chg_cd4a4cbac4dacbe0a75c049b 2026-10-09T10:03:19+00:00 1791540199 1 false 1791626599 PUT /campaigns/4 {"aff_campaign_payout":"360"} campaigns PUT /campaigns/4 applied 2026-10-09T10:01:42+00:00 1 1791540102 chg_7c0dcc8788fde1cddbcb1341 2026-10-09T10:01:42+00:00 1791540102 1 false 1791626502 PUT /campaigns/4 {"aff_campaign_payout":"360"} campaigns PUT /campaigns/4
03Build your command
Pick values and the command line writes itself, quoted and ready to paste.
p202 change listSet flags below; the command updates as you type.
04Flags
2 flags, plus the global flags every command takes.
| Flag | What it does |
|---|---|
| --allbool | Every user's changes, not just yours (admin only) |
| --statusstring | Filter by status: staged, applying, applied, discarded, apply_interruptedstagedapplyingapplieddiscardedapply_interrupted |
05For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands change 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 change list",
"use": "list",
"short": "List staged changes (yours; --all for every user's, admin only)",
"runnable": true,
"flags": [
{
"name": "all",
"type": "bool",
"default": "false",
"usage": "Every user's changes, not just yours (admin only)",
"required": false
},
{
"name": "status",
"type": "string",
"default": "",
"usage": "Filter by status: staged, applying, applied, discarded, apply_interrupted",
"allowed_values": [
"staged",
"applying",
"applied",
"discarded",
"apply_interrupted"
],
"required": false
}
]
}