p202 ltv products

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

New in 1.9.77
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           1791539237  USD       sku:GFT-100          100        18          GFT-100          1791539313
Gift Card $50            1791539237  USD       sku:GFT-50           50         17          GFT-50           1791539313
Gift Card $25            1791539237  USD       sku:GFT-25           25         16          GFT-25           1791539313
Celebration Cake         1791539237  USD       sku:BKY-CAKE         54         15          BKY-CAKE         1791539314
Pastry Box (6)           1791539237  USD       sku:BKY-PASTRY-BOX   24         14          BKY-PASTRY-BOX   1791539313
Sourdough Loaf           1791539237  USD       sku:BKY-SOURDOUGH    9          13          BKY-SOURDOUGH    1791539314
Team plan, monthly       1791539237  USD       sku:PT-TEAM-MONTHLY  29         12          PT-TEAM-MONTHLY  1789734449
Team plan, annual        1791539237  USD       sku:PT-TEAM-ANNUAL   588        11          PT-TEAM-ANNUAL   1791243739
Pro plan, annual         1791539237  USD       sku:PT-PRO-ANNUAL    348        10          PT-PRO-ANNUAL    1789500439
Cable Tray               1791539237  USD       sku:DSK-CABLE        29         9           DSK-CABLE        1789733060
Anti-fatigue Mat         1791539237  USD       sku:DSK-MAT          59         8           DSK-MAT          1789733060
Electric Sit-Stand Desk  1791539237  USD       sku:DSK-ELECTRIC     489        7           DSK-ELECTRIC     1789733060
Starter Box              1791539237  USD       sku:COF-STARTER      58         6           COF-STARTER      1789116132
Monthly Coffee (2 bags)  1791539237  USD       sku:COF-MONTHLY      32         5           COF-MONTHLY      1791061940
Relaxed Chino            1791539237  USD       sku:SPR-CHINO        78         4           SPR-CHINO        1791539313
Canvas Tote              1791539237  USD       sku:SPR-CANVAS-TOTE  34         3           SPR-CANVAS-TOTE  1791539313
Wrap Dress               1791539237  USD       sku:SPR-WRAP-DRESS   96         2           SPR-WRAP-DRESS   1789575919
Linen Shirt              1791539237  USD       sku:SPR-LINEN-SHIRT  68         1           SPR-LINEN-SHIRT  1791539314
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 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.
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
    }
  ]
}