> For the complete documentation index, see [llms.txt](https://docs.stoobly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stoobly.com/guides/how-to-update-requests/updating-with-replay/replaying-from-the-cli.md).

# Replaying from the CLI

## Updating a Request by Replaying

### Command

```bash
stoobly-agent request replay --overwrite "<REQUEST-KEY>"
```

## Updating Multiple Requests by Replaying

1. Grab the key of all the requests that need updating

```bash
request_keys=$(stoobly-agent request list --search "<SEARCH-PHRASE>" --select key --without-headers)
```

The search option will match either by the request's hostname or path. Currently regex is not supported.

2. Pass each request key to the replay command

```bash
echo $request_keys | xargs stoobly-agent request replay --overwrite
```
