Storeware Docs
Command reference

function run

Run one of your checkout functions on this machine, with no network, and check its answer.

npx @storeware/cli function run <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
--input <file>A JSON file to hand it. A sample for its kind when not given.
--jsonPrint the answer, the time it took and any problems as JSON, for a script.

Examples

npx @storeware/cli function run volume_discount
npx @storeware/cli function run volume_discount --input basket.json

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

On this page