Command reference
function replay
Run one of your checkout functions on the baskets a development store priced recently.
npx @storeware/cli function replay <handle> [manifest] [flags]Arguments
| Argument | Required | What it is |
|---|---|---|
<handle> | Yes | The function, by the handle it has under [[functions]] in the manifest. |
[manifest] | No | The manifest. storeware.app.toml in this directory when not given. |
Flags
| Flag | What it does |
|---|---|
--store <handle> | Which development store, by handle or id. The one app dev used, or your only one, when not given. |
--limit <n> | How many baskets, newest first. 20 when not given, and at most 50. |
--json | Print each basket and what the function answered as JSON, for a script. |
Examples
npx @storeware/cli function replay volume_discount
npx @storeware/cli function replay packs_of_six --limit 50More in Checkout functions. Every command also takes the flags on the reference page.