resend-cli 2.19.1 → 2.20.1
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/README.md +14 -2
- package/dist/cli.cjs +165 -163
- package/package.json +2 -2
- package/skills/resend-cli/SKILL.md +3 -3
- package/skills/resend-cli/references/webhooks.md +14 -2
- package/skills/resend-cli/references/workflows.md +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resend-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.1",
|
|
4
4
|
"description": "The official CLI for Resend",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"esbuild": "0.28.1",
|
|
47
47
|
"esbuild-wasm": "0.28.0",
|
|
48
48
|
"picocolors": "1.1.1",
|
|
49
|
-
"resend": "6.
|
|
49
|
+
"resend": "6.27.0"
|
|
50
50
|
},
|
|
51
51
|
"pkg": {
|
|
52
52
|
"scripts": [
|
|
@@ -13,7 +13,7 @@ metadata:
|
|
|
13
13
|
author: resend
|
|
14
14
|
# Skill version is independent from the CLI/package.json version —
|
|
15
15
|
# bump it on skill content changes, not CLI releases.
|
|
16
|
-
version: "2.
|
|
16
|
+
version: "2.12.1"
|
|
17
17
|
homepage: https://resend.com/docs/cli-agents
|
|
18
18
|
source: https://github.com/resend/resend-cli
|
|
19
19
|
openclaw:
|
|
@@ -145,7 +145,7 @@ Auth resolves: `RESEND_API_KEY` env > config file (`resend login --key`). Use `-
|
|
|
145
145
|
| `segments` | create, get, list, update, delete, contacts |
|
|
146
146
|
| `templates` | create, publish, duplicate, delete, list |
|
|
147
147
|
| `topics` | create, update, delete, list |
|
|
148
|
-
| `webhooks` | create, update, listen, delete, list, events (list, get, attempts, replay) |
|
|
148
|
+
| `webhooks` | create, update, rotate-signing-secret, listen, delete, list, events (list, get, attempts, replay) |
|
|
149
149
|
| `auth` | login, logout, switch, rename, remove |
|
|
150
150
|
| `whoami` / `doctor` / `update` / `open` / `commands` | Utility commands |
|
|
151
151
|
|
|
@@ -158,7 +158,7 @@ Read the matching reference file for detailed flags and output shapes.
|
|
|
158
158
|
| # | Mistake | Fix |
|
|
159
159
|
|---|---------|-----|
|
|
160
160
|
| 1 | **Forgetting `--yes` on delete commands** | All `delete`/`rm` subcommands require `--yes` in non-interactive mode — otherwise the CLI exits with an error |
|
|
161
|
-
| 2 | **
|
|
161
|
+
| 2 | **Losing the webhook `signing_secret`** | `webhooks create` returns it, and `webhooks get` returns it again. Use `webhooks rotate-signing-secret` if it leaked |
|
|
162
162
|
| 3 | **Omitting `--quiet` in CI** | Without `-q`, spinners and status text still go to stderr (not stdout). Use `-q` for JSON on stdout with no spinner noise on stderr |
|
|
163
163
|
| 4 | **Passing `--scheduled-at` as a flag to batch** | There is no `--scheduled-at` flag on `emails batch` — set `scheduled_at` per-email in the JSON file instead |
|
|
164
164
|
| 5 | **Expecting `domains list` to include DNS records** | List returns summaries only — use `domains get <id>` for the full `records[]` array |
|
|
@@ -26,7 +26,7 @@ Detailed flag specifications for `resend webhooks` commands.
|
|
|
26
26
|
- Contact: `contact.created`, `contact.updated`, `contact.deleted`
|
|
27
27
|
- Domain: `domain.created`, `domain.updated`, `domain.deleted`
|
|
28
28
|
|
|
29
|
-
**Output includes `signing_secret
|
|
29
|
+
**Output includes `signing_secret`.** `webhooks get` returns it again.
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
@@ -34,7 +34,7 @@ Detailed flag specifications for `resend webhooks` commands.
|
|
|
34
34
|
|
|
35
35
|
**Argument:** `<id>` — Webhook ID
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Returns the webhook including its `signing_secret`.
|
|
38
38
|
|
|
39
39
|
---
|
|
40
40
|
|
|
@@ -60,6 +60,18 @@ Detailed flag specifications for `resend webhooks` commands.
|
|
|
60
60
|
|
|
61
61
|
---
|
|
62
62
|
|
|
63
|
+
## webhooks rotate-signing-secret
|
|
64
|
+
|
|
65
|
+
**Argument:** `<id>` — Webhook ID
|
|
66
|
+
|
|
67
|
+
Generates a new signing secret. For 24 hours, payloads are signed with both the
|
|
68
|
+
new and the previous secret, so either one verifies them. After that, only the
|
|
69
|
+
new secret does.
|
|
70
|
+
|
|
71
|
+
Returns `{"object":"webhook","id":"<uuid>","signing_secret":"whsec_..."}`.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
63
75
|
## webhooks events list
|
|
64
76
|
|
|
65
77
|
Lists the events Resend delivered to a webhook, most recent first.
|
|
@@ -165,7 +165,7 @@ resend webhooks create \
|
|
|
165
165
|
--endpoint https://yourapp.com/webhooks/resend \
|
|
166
166
|
--events email.delivered email.bounced email.complained
|
|
167
167
|
|
|
168
|
-
#
|
|
168
|
+
# Use the signing_secret from output to verify payloads; "resend webhooks get" returns it again
|
|
169
169
|
|
|
170
170
|
# Or subscribe to all events
|
|
171
171
|
resend webhooks create \
|