Command reference
function sample
Print a sample input for a kind of checkout function, as JSON.
npx @storeware/cli function sample <kind>Arguments
| Argument | Required | What it is |
|---|---|---|
<kind> | Yes | The kind: discount, delivery_rates, payment_methods or cart_validation. |
Examples
npx @storeware/cli function sample discount
npx @storeware/cli function sample cart_validationMore in Checkout functions. Every command also takes the flags on the reference page.