p202 aff-network list

List categories (affiliate networks)

Web UISetup › Categories
All commands

01Jobs it does

Each one is a real command line. Copy it, or open it in the builder below to change it.

affiliate networks

Also: offer categories

p202 aff-network list
Web UISetup › Categories

02What 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 aff-network list
$ p202 aff-network list
aff_network_id  aff_network_name  dni_network_id  etag                                        user_id  version
--------------  ----------------  --------------  ------------------------------------------  -------  ----------------------------------------
4               Local Bakery                      "b5880c20f05f5d0ed5664a41557fdcd31f072784"  1        b5880c20f05f5d0ed5664a41557fdcd31f072784
3               Retail                            "7a6f2b843d3b43eed24ac8027d62d5f4820df399"  1        7a6f2b843d3b43eed24ac8027d62d5f4820df399
2               SaaS Signups                      "9ae555881e02d890b44c1bceb385657affa5c6c4"  1        9ae555881e02d890b44c1bceb385657affa5c6c4
1               Online Store                      "a54b836587ffabd08cbde93405e60c1b5610ad52"  1        a54b836587ffabd08cbde93405e60c1b5610ad52
Total: 4 | Limit: 50 | Offset: 0
Real output · p202 1.9.77 · demo dataexit 0

03Build your command

Pick values and the command line writes itself, quoted and ready to paste.

p202 aff-network list

Set flags below; the command updates as you type.

04Flags

5 flags, plus the global flags every command takes.

FlagWhat it does
--allboolFetch all rows across pages
--limit, -lstringMax results
--offset, -ostringPagination offset
--pagestringPage number
--resolve-namesboolResolve foreign key IDs to names

05For agents

Running this from an agent

  • Read the same facts as JSON: p202 commands aff-network list --json.
  • With AI_AGENT, CLAUDECODE or another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with a hint.
  • Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure.
p202 commands aff-network list --json
{
  "path": "p202 aff-network list",
  "use": "list",
  "short": "List categories (affiliate networks)",
  "runnable": true,
  "tasks": [
    {
      "run": "p202 aff-network list",
      "ui_pages": [
        "Setup › Categories"
      ],
      "phrases": [
        "affiliate networks",
        "offer categories"
      ]
    }
  ],
  "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
    },
    {
      "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
    }
  ]
}