Storeware Docs
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

ArgumentRequiredWhat it is
<handle>YesThe function, by the handle it has under [[functions]] in the manifest.
[manifest]NoThe manifest. storeware.app.toml in this directory when not given.

Flags

FlagWhat 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.
--jsonPrint 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 50

More in Checkout functions. Every command also takes the flags on the reference page.

On this page