resend-cli 1.7.1 → 1.8.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resend-cli",
3
- "version": "1.7.1",
3
+ "version": "1.8.0",
4
4
  "description": "The official CLI for Resend",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,15 +32,15 @@
32
32
  "commander": "14.0.3",
33
33
  "esbuild": "0.27.4",
34
34
  "picocolors": "1.1.1",
35
- "resend": "6.9.4"
35
+ "resend": "6.10.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@biomejs/biome": "2.4.8",
39
39
  "@types/node": "24.12.0",
40
+ "@yao-pkg/pkg": "6.14.1",
40
41
  "tsx": "4.21.0",
41
42
  "typescript": "5.9.3",
42
- "vitest": "4.1.2",
43
- "@yao-pkg/pkg": "6.14.1"
43
+ "vitest": "4.1.2"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "tsx src/cli.ts",
@@ -3,14 +3,14 @@ name: resend-cli
3
3
  description: >
4
4
  Operate the Resend platform from the terminal — send emails (including React Email
5
5
  .tsx templates via --react-email), manage domains, contacts, broadcasts, templates,
6
- webhooks, and API keys via the `resend` CLI. Use when the user wants to run Resend
7
- commands in the shell, scripts, or CI/CD pipelines, or send/preview React Email
8
- templates. Always load this skill before running `resend` commands — it contains
9
- the non-interactive flag contract and gotchas that prevent silent failures.
6
+ webhooks, API keys, and logs via the `resend` CLI. Use when the user wants to run
7
+ Resend commands in the shell, scripts, or CI/CD pipelines, or send/preview React
8
+ Email templates. Always load this skill before running `resend` commands — it
9
+ contains the non-interactive flag contract and gotchas that prevent silent failures.
10
10
  license: MIT
11
11
  metadata:
12
12
  author: resend
13
- version: "1.7.1"
13
+ version: "1.8.0"
14
14
  homepage: https://resend.com
15
15
  source: https://github.com/resend/resend-cli
16
16
  inputs:
@@ -27,6 +27,7 @@ references:
27
27
  - references/segments.md
28
28
  - references/templates.md
29
29
  - references/topics.md
30
+ - references/logs.md
30
31
  - references/webhooks.md
31
32
  - references/auth.md
32
33
  - references/workflows.md
@@ -70,6 +71,7 @@ Auth resolves: `--api-key` flag > `RESEND_API_KEY` env > config file (`resend lo
70
71
  | `emails` | send, get, list, batch, cancel, update |
71
72
  | `emails receiving` | list, get, attachments, forward, listen |
72
73
  | `domains` | create, verify, update, delete, list |
74
+ | `logs` | list, get, open |
73
75
  | `api-keys` | create, list, delete |
74
76
  | `broadcasts` | create, send, update, delete, list |
75
77
  | `contacts` | create, update, delete, segments, topics |
@@ -94,6 +96,7 @@ Read the matching reference file for detailed flags and output shapes.
94
96
  | 5 | **Expecting `domains list` to include DNS records** | List returns summaries only — use `domains get <id>` for the full `records[]` array |
95
97
  | 6 | **Sending a dashboard-created broadcast via CLI** | Only API-created broadcasts can be sent with `broadcasts send` — dashboard broadcasts must be sent from the dashboard |
96
98
  | 7 | **Passing `--events` to `webhooks update` expecting additive behavior** | `--events` replaces the entire subscription list — always pass the complete set |
99
+ | 8 | **Expecting `logs list` to include request/response bodies** | List returns summary fields only — use `logs get <id>` for full `request_body` and `response_body` |
97
100
 
98
101
  ## Common Patterns
99
102
 
@@ -139,6 +142,7 @@ resend doctor -q
139
142
  - **Managing contacts, segments, or topics** → [references/contacts.md](references/contacts.md), [references/segments.md](references/segments.md), [references/topics.md](references/topics.md)
140
143
  - **Defining contact properties** → [references/contact-properties.md](references/contact-properties.md)
141
144
  - **Working with templates** → [references/templates.md](references/templates.md)
145
+ - **Viewing API request logs** → [references/logs.md](references/logs.md)
142
146
  - **Setting up webhooks or listening for events** → [references/webhooks.md](references/webhooks.md)
143
147
  - **Auth, profiles, or health checks** → [references/auth.md](references/auth.md)
144
148
  - **Multi-step recipes** (setup, CI/CD, broadcast workflow) → [references/workflows.md](references/workflows.md)
@@ -0,0 +1,35 @@
1
+ # logs
2
+
3
+ Detailed flag specifications for `resend logs` commands.
4
+
5
+ ---
6
+
7
+ ## logs list
8
+
9
+ List API request logs with pagination. The list response returns a subset of fields — use `logs get <id>` for full request/response bodies.
10
+
11
+ | Flag | Type | Default | Description |
12
+ |------|------|---------|-------------|
13
+ | `--limit <n>` | number | 10 | Max results (1-100) |
14
+ | `--after <cursor>` | string | — | Forward pagination |
15
+ | `--before <cursor>` | string | — | Backward pagination |
16
+
17
+ **Output:** `{"object":"list","data":[{"id":"...","created_at":"...","endpoint":"...","method":"...","response_status":200,"user_agent":"..."|null}],"has_more":false}`
18
+
19
+ ---
20
+
21
+ ## logs get
22
+
23
+ Retrieve a single API request log with full request and response bodies.
24
+
25
+ **Argument:** `[id]` — Log ID (UUID). Omit in interactive mode to pick from a list.
26
+
27
+ **Output:** `{"object":"log","id":"...","created_at":"...","endpoint":"...","method":"...","response_status":200,"user_agent":"..."|null,"request_body":{...},"response_body":{...}}`
28
+
29
+ ---
30
+
31
+ ## logs open
32
+
33
+ Open a log or the logs list in the Resend dashboard in your default browser.
34
+
35
+ **Argument:** `[id]` — Log ID. Omit to open the logs list.