vike-alerts-setuplisted
Install: claude install-skill vike-io/vike-cli
# vike-alerts-setup
## Pre-check: what channels does the user have set up?
```bash
vike alerts channels --json
```
Returns enabled email + Discord channels. **If a user creates an alert with a channel they haven't verified, the alert is saved but won't fire notifications.** Always check first.
## CRUD
### List
```bash
vike alerts list --json # active alerts
vike alerts list --include-inactive --json # also paused/deleted
```
### Create
```bash
vike alerts create \
--label "Big USDC moves" \
--token USDC \
--chain eth \
--min-usd 1000000 \
--channel email \
--cooldown 60
```
Required: `--label`. Common: `--token`, `--chain eth|bsc`, `--min-usd`, `--channel email|discord` (can repeat).
### Edit (partial update — only fields you pass are changed)
```bash
vike alerts edit 42 --min-usd 5000000 # raise threshold
vike alerts edit 42 --active false # pause
vike alerts edit 42 --channel email --channel discord # add second channel
```
### Delete
```bash
vike alerts delete 42 # soft-delete (pauses, keeps history)
vike alerts delete 42 --hard # permanently remove
```
## Notes + gotchas
- Currently chains supported: **eth** and **bsc** only. For both, create two alerts.
- Thresholds are in **USD value** of the transfer at fire time, not token quantity.
- `--cooldown` is per-alert minimum gap between triggers (default 60 min). Useful to avoid spam during high-volume hours.
- Toke