> ## Documentation Index
> Fetch the complete documentation index at: https://docs.esperr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Mitigations

> Define response behaviors when policies match.

## List mitigations

```bash theme={null}
esper mitigation list
```

## Create mitigation

```bash theme={null}
esper mitigation create \
  --name "Monitor Login" \
  --description "Observe matching login traffic." \
  --mode Monitor

esper mitigation create \
  --name "Hard Block Login" \
  --description "Block matching login traffic locally." \
  --mode Block \
  --block-mode Hard
```

This writes data files under `~/.esper/data/mitigations/`. Mode-specific
flags are validated before the CLI calls the API.

## Update mitigation

```bash theme={null}
esper mitigation update --file ./mitigation-v2.json
```

<Info>
  Mitigation updates apply to new evaluations only. Active mitigations continue with their original configuration.
</Info>

## Delete mitigation

```bash theme={null}
esper mitigation delete <mitigation-id>
```
