# function replay

> Run one of your checkout functions on the baskets a development store priced recently.

Source: https://storeware.ai/docs/cli/commands/function-replay

```bash
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

```bash
npx @storeware/cli function replay volume_discount
npx @storeware/cli function replay packs_of_six --limit 50
```

More in [Checkout functions](https://storeware.ai/docs/build-apps/checkout-functions). Every command also takes the [flags on the reference page](https://storeware.ai/docs/cli/commands#flags-every-command-takes).
