resend-cli 1.9.1 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -11,13 +11,38 @@ description: >
|
|
|
11
11
|
license: MIT
|
|
12
12
|
metadata:
|
|
13
13
|
author: resend
|
|
14
|
-
version: "1.
|
|
15
|
-
homepage: https://resend.com
|
|
14
|
+
version: "1.12.0"
|
|
15
|
+
homepage: https://resend.com/docs/cli-agents
|
|
16
16
|
source: https://github.com/resend/resend-cli
|
|
17
|
+
openclaw:
|
|
18
|
+
primaryEnv: RESEND_API_KEY
|
|
19
|
+
requires:
|
|
20
|
+
env:
|
|
21
|
+
- RESEND_API_KEY
|
|
22
|
+
bins:
|
|
23
|
+
- resend
|
|
24
|
+
envVars:
|
|
25
|
+
- name: RESEND_API_KEY
|
|
26
|
+
required: true
|
|
27
|
+
description: Resend API key for authenticating CLI commands
|
|
28
|
+
- name: RESEND_PROFILE
|
|
29
|
+
required: false
|
|
30
|
+
description: Named auth profile for multi-account setups
|
|
31
|
+
install:
|
|
32
|
+
- kind: node
|
|
33
|
+
package: resend-cli
|
|
34
|
+
bins: [resend]
|
|
35
|
+
label: Resend CLI
|
|
36
|
+
links:
|
|
37
|
+
repository: https://github.com/resend/resend-cli
|
|
38
|
+
documentation: https://resend.com/docs/cli
|
|
17
39
|
inputs:
|
|
18
40
|
- name: RESEND_API_KEY
|
|
19
41
|
description: Resend API key for authenticating CLI commands. Get yours at https://resend.com/api-keys
|
|
20
42
|
required: true
|
|
43
|
+
- name: RESEND_PROFILE
|
|
44
|
+
description: Named auth profile for multi-account setups. Selects which stored API key to use (see `resend auth`).
|
|
45
|
+
required: false
|
|
21
46
|
references:
|
|
22
47
|
- references/emails.md
|
|
23
48
|
- references/domains.md
|
|
@@ -110,12 +135,12 @@ Auth resolves: `--api-key` flag > `RESEND_API_KEY` env > config file (`resend lo
|
|
|
110
135
|
| `domains` | create, verify, update, delete, list |
|
|
111
136
|
| `logs` | list, get, open |
|
|
112
137
|
| `api-keys` | create, list, delete |
|
|
113
|
-
| `automations` | create, get, list, update, delete, open, runs |
|
|
138
|
+
| `automations` | create, get, list, update, delete, stop, open, runs |
|
|
114
139
|
| `events` | create, get, list, update, delete, send, open |
|
|
115
140
|
| `broadcasts` | create, send, update, delete, list |
|
|
116
141
|
| `contacts` | create, update, delete, segments, topics |
|
|
117
142
|
| `contact-properties` | create, update, delete, list |
|
|
118
|
-
| `segments` | create, get, list, delete |
|
|
143
|
+
| `segments` | create, get, list, delete, contacts |
|
|
119
144
|
| `templates` | create, publish, duplicate, delete, list |
|
|
120
145
|
| `topics` | create, update, delete, list |
|
|
121
146
|
| `webhooks` | create, update, listen, delete, list |
|
|
@@ -54,6 +54,18 @@ resend automations update <id> --status enabled
|
|
|
54
54
|
|
|
55
55
|
---
|
|
56
56
|
|
|
57
|
+
## automations stop
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
resend automations stop <id>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Stops a running automation by setting its status to disabled and cancelling active runs.
|
|
64
|
+
|
|
65
|
+
Returns `{"object":"automation","id":"<id>","status":"disabled"}`.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
57
69
|
## automations delete
|
|
58
70
|
|
|
59
71
|
| Flag | Type | Required | Description |
|
|
@@ -76,12 +88,15 @@ Opens the automations list or a specific automation's editor in the dashboard.
|
|
|
76
88
|
|
|
77
89
|
| Flag | Type | Default | Description |
|
|
78
90
|
|------|------|---------|-------------|
|
|
91
|
+
| `--status <status>` | string | — | Filter by status (comma-separated: `running`, `completed`, `failed`, `cancelled`) |
|
|
79
92
|
| `--limit <n>` | number | 10 | Max results (1-100) |
|
|
80
93
|
| `--after <cursor>` | string | — | Forward pagination |
|
|
81
94
|
| `--before <cursor>` | string | — | Backward pagination |
|
|
82
95
|
|
|
83
96
|
```
|
|
84
97
|
resend automations runs <automation-id>
|
|
98
|
+
resend automations runs list <automation-id> --status running
|
|
99
|
+
resend automations runs list <automation-id> --status completed,failed
|
|
85
100
|
```
|
|
86
101
|
|
|
87
102
|
**Run status values:** `running` | `completed` | `failed` | `cancelled`
|
|
@@ -37,3 +37,17 @@ Detailed flag specifications for `resend segments` commands.
|
|
|
37
37
|
| `--yes` | boolean | Yes (non-interactive) | Skip confirmation |
|
|
38
38
|
|
|
39
39
|
Deleting a segment does NOT delete its contacts.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## segments contacts
|
|
44
|
+
|
|
45
|
+
**Argument:** `[segmentId]` — Segment UUID (interactive picker if omitted)
|
|
46
|
+
|
|
47
|
+
| Flag | Type | Default | Description |
|
|
48
|
+
|------|------|---------|-------------|
|
|
49
|
+
| `--limit <n>` | number | 10 | Max results (1-100) |
|
|
50
|
+
| `--after <cursor>` | string | — | Forward pagination |
|
|
51
|
+
| `--before <cursor>` | string | — | Backward pagination |
|
|
52
|
+
|
|
53
|
+
Lists contacts belonging to a segment. Uses `resend.contacts.list({ segmentId })` which maps to `GET /segments/:segment_id/contacts`.
|