p202 ltv products

The product catalog revenue line items and ltv product upsert write to, newest first

All commands

01Run it

Replace the <placeholders> with your own values, or use the builder below.

p202 ltv products

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 ltv products
$ p202 ltv products
name                     created_at  currency  external_product_id  price      product_id  sku              updated_at
-----------------------  ----------  --------  -------------------  ---------  ----------  ---------------  ----------
Gift Card $100           1792622022  USD       sku:GFT-100          100        18          GFT-100          1790118931
Gift Card $50            1792622022  USD       sku:GFT-50           50         17          GFT-50           1792622055
Gift Card $25            1792622022  USD       sku:GFT-25           25         16          GFT-25           1792622056
Celebration Cake         1792622022  USD       sku:BKY-CAKE         54         15          BKY-CAKE         1792622056
Pastry Box (6)           1792622022  USD       sku:BKY-PASTRY-BOX   24         14          BKY-PASTRY-BOX   1792622056
Sourdough Loaf           1792622022  USD       sku:BKY-SOURDOUGH    9          13          BKY-SOURDOUGH    1792622055
Team plan, monthly       1792622022  USD       sku:PT-TEAM-MONTHLY  29         12          PT-TEAM-MONTHLY  1792531218
Team plan, annual        1792622022  USD       sku:PT-TEAM-ANNUAL   588        11          PT-TEAM-ANNUAL   1791754494
Pro plan, annual         1792622022  USD       sku:PT-PRO-ANNUAL    348        10          PT-PRO-ANNUAL    1790598577
Cable Tray               1792622022  USD       sku:DSK-CABLE        29         9           DSK-CABLE        1792414880
Anti-fatigue Mat         1792622022  USD       sku:DSK-MAT          59         8           DSK-MAT          1792607372
Electric Sit-Stand Desk  1792622022  USD       sku:DSK-ELECTRIC     489        7           DSK-ELECTRIC     1792414880
Starter Box              1792622022  USD       sku:COF-STARTER      58         6           COF-STARTER      1790208784
Monthly Coffee (2 bags)  1792622022  USD       sku:COF-MONTHLY      32         5           COF-MONTHLY      1792017216
Relaxed Chino            1792622022  USD       sku:SPR-CHINO        78         4           SPR-CHINO        1792622056
Canvas Tote              1792622022  USD       sku:SPR-CANVAS-TOTE  34         3           SPR-CANVAS-TOTE  1792622056
Wrap Dress               1792622022  USD       sku:SPR-WRAP-DRESS   96         2           SPR-WRAP-DRESS   1792622055
Linen Shirt              1792622022  USD       sku:SPR-LINEN-SHIRT  68         1           SPR-LINEN-SHIRT  1792622056
Real output · p202 1.9.78 · demo dataexit 0

03Build your command

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

p202 ltv products

Set flags below; the command updates as you type.

04Flags

2 flags, plus the global flags every command takes.

FlagWhat it does
--limit, -lstringRows per page (max 500)
--offset, -ostringPagination offset

05For agents

Running this from an agent

  • Read the same facts as JSON: p202 commands ltv products --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, 6 no Pro licence on the install.
p202 commands ltv products --json
{
  "path": "p202 ltv products",
  "use": "products",
  "short": "The product catalog revenue line items and `ltv product upsert` write to, newest first",
  "runnable": true,
  "flags": [
    {
      "name": "limit",
      "shorthand": "l",
      "type": "string",
      "default": "",
      "usage": "Rows per page (max 500)",
      "required": false
    },
    {
      "name": "offset",
      "shorthand": "o",
      "type": "string",
      "default": "",
      "usage": "Pagination offset",
      "required": false
    }
  ]
}