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