You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cli/alerts.mdx
+76-64Lines changed: 76 additions & 64 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,39 +2,40 @@
2
2
title: "Alerts"
3
3
sidebarTitle: "Alerts"
4
4
icon: bell
5
-
description: "Manage project alerts from the terminal with the Formo CLI. Create, list, update, delete, and toggle alerts that notify you of key events and thresholds."
5
+
description: "Manage project alerts from the terminal with the Formo CLI. Create, list, update, test, delete, and toggle alerts that notify your team about matching events or users."
6
6
---
7
7
8
-
The `formo alerts` command group lets you manage project alerts. Alerts notify you when specific events or thresholds are triggered.
8
+
The `formo alerts` command group manages project alerts. Alerts can notify email, Slack, or webhook recipients when event or user filters match.
9
9
10
10
## `formo alerts list`
11
11
12
-
List all alerts for the project.
12
+
List alerts for the active project.
13
13
14
14
<Note>
15
15
Requires `alerts:read` scope on your API key.
16
16
</Note>
17
17
18
+
### Options
19
+
20
+
| Option | Type | Required | Description |
21
+
|--------|------|----------|-------------|
22
+
|`--page`|`number`| ❌ | Page number, 1-indexed |
23
+
|`--size`|`number`| ❌ | Page size |
24
+
18
25
```bash
19
-
formo alerts list
26
+
formo alerts list --size 25
20
27
```
21
28
22
29
---
23
30
24
-
## `formo alerts get`
31
+
## `formo alerts get <alertId>`
25
32
26
33
Get a single alert by ID.
27
34
28
35
<Note>
29
36
Requires `alerts:read` scope on your API key.
30
37
</Note>
31
38
32
-
### Arguments
33
-
34
-
| Argument | Type | Required | Description |
35
-
|----------|------|----------|-------------|
36
-
|`alertId`|`string`| ✅ | Alert ID |
37
-
38
39
```bash
39
40
formo alerts get alert_abc123
40
41
```
@@ -54,122 +55,133 @@ Requires `alerts:write` scope on your API key.
54
55
| Option | Type | Required | Description |
55
56
|--------|------|----------|-------------|
56
57
|`--name`|`string`| ✅ | Alert name |
57
-
|`--trigger-type`|`string`| ✅ | Trigger type (e.g. `event`, `threshold`)|
58
+
|`--trigger-type`|`enum`| ✅ | Trigger type: `event` or `user`|
58
59
|`--trigger-filters`|`string`| ❌ | JSON array of trigger filter objects |
59
60
|`--recipient`|`string`| ❌ | JSON array of recipient objects |
60
61
|`--secret`|`string`| ❌ | Webhook secret for the alert |
62
+
|`--slack-property-keys`|`string`| ❌ | JSON array of event/user property keys to include in Slack alerts |
63
+
64
+
### Recipient Shape
65
+
66
+
`--recipient` is a JSON array. Each entry should include a `type` such as `email`, `slack`, or `webhook`, plus a `value`.
Copy file name to clipboardExpand all lines: cli/boards.mdx
+24-39Lines changed: 24 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ icon: table-columns
5
5
description: "Manage analytics dashboard boards from the terminal with the Formo CLI. Create, list, update, and delete boards that organize your charts and reports."
6
6
---
7
7
8
-
The `formo boards` command group lets you manage dashboard boards for your project. Boards are containers for charts and can be used to organize your analytics dashboards.
8
+
The `formo boards` command group manages dashboard boards for the active project. Boards are containers for charts.
9
9
10
10
## `formo boards list`
11
11
@@ -15,26 +15,27 @@ List all boards for the project.
15
15
Requires `boards:read` scope on your API key.
16
16
</Note>
17
17
18
+
### Options
19
+
20
+
| Option | Type | Required | Description |
21
+
|--------|------|----------|-------------|
22
+
|`--page`|`number`| ❌ | Page number, 1-indexed |
23
+
|`--size`|`number`| ❌ | Page size |
24
+
18
25
```bash
19
-
formo boards list
26
+
formo boards list --size 25
20
27
```
21
28
22
29
---
23
30
24
-
## `formo boards get`
31
+
## `formo boards get <boardId>`
25
32
26
33
Get a single board by ID.
27
34
28
35
<Note>
29
36
Requires `boards:read` scope on your API key.
30
37
</Note>
31
38
32
-
### Arguments
33
-
34
-
| Argument | Type | Required | Description |
35
-
|----------|------|----------|-------------|
36
-
|`boardId`|`string`| ✅ | Board ID |
37
-
38
39
```bash
39
40
formo boards get board_abc123
40
41
```
@@ -53,72 +54,56 @@ Requires `boards:write` scope on your API key.
53
54
54
55
| Option | Type | Required | Description |
55
56
|--------|------|----------|-------------|
56
-
|`--name`|`string`| ✅ | Board name |
57
+
|`--title`|`string`| ✅ | Board title |
58
+
|`--name`|`string`| ❌ | Deprecated alias for `--title`|
0 commit comments