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
| 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 |
|---|---|
--input <file> | A JSON file to hand it. A sample for its kind when not given. |
--json | Print 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.jsonMore in Checkout functions. Every command also takes the flags on the reference page.