formo alerts command group manages project alerts. Alerts can notify email, Slack, or webhook recipients when event or user filters match.
formo alerts list
List alerts for the active project.
Requires
alerts:read scope on your API key.Options
| Option | Type | Required | Description |
|---|---|---|---|
--page | number | ❌ | Page number, 1-indexed |
--size | number | ❌ | Page size |
formo alerts get <alertId>
Get a single alert by ID.
Requires
alerts:read scope on your API key.formo alerts create
Create a new project alert.
Requires
alerts:write scope on your API key.Options
| Option | Type | Required | Description |
|---|---|---|---|
--name | string | ✅ | Alert name |
--trigger-type | enum | ✅ | Trigger type: event or user |
--trigger-filters | string | ❌ | JSON array of trigger filter objects |
--recipient | string | ❌ | JSON array of recipient objects |
--secret | string | ❌ | Webhook secret for the alert |
--slack-property-keys | string | ❌ | JSON array of event/user property keys to include in Slack alerts |
Recipient Shape
--recipient is a JSON array. Each entry should include a type such as email, slack, or webhook, plus a value.
Examples
formo alerts update <alertId>
Update an existing alert.
Requires
alerts:write scope on your API key.Options
| Option | Type | Required | Description |
|---|---|---|---|
--name | string | ✅ | Alert name |
--trigger-type | enum | ✅ | Trigger type: event or user |
--trigger-filters | string | ❌ | JSON array of trigger filter objects |
--recipient | string | ❌ | JSON array of recipient objects |
--secret | string | ❌ | Webhook secret for the alert |
--slack-property-keys | string | ❌ | JSON array of event/user property keys to include in Slack alerts |
formo alerts toggle <alertId>
Toggle an alert status.
Requires
alerts:write scope on your API key.| Option | Type | Required | Description |
|---|---|---|---|
--status | enum | ✅ | New status: active or inactive. paused is accepted as a deprecated alias for inactive. |
formo alerts test <alertId>
Send a test delivery for an alert.
Requires
alerts:write scope on your API key.Options
| Option | Type | Required | Description |
|---|---|---|---|
--sample-event | string | ❌ | JSON object to use as the sample event |
--sample-user | string | ❌ | JSON object to use as the sample user/profile |
--recipient-overrides | string | ❌ | JSON array of recipient objects to test instead of saved recipients |
Webhook tests require a public webhook URL. Localhost and private-network URLs are blocked by backend SSRF protections.
formo alerts delete <alertId>
Delete an alert.
Requires
alerts:write scope on your API key.