resend-cli 1.11.0 → 2.1.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.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "The official CLI for Resend",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"commander": "14.0.3",
|
|
33
33
|
"esbuild": "0.28.0",
|
|
34
34
|
"picocolors": "1.1.1",
|
|
35
|
-
"resend": "6.
|
|
35
|
+
"resend": "6.12.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@biomejs/biome": "2.4.11",
|
|
@@ -27,6 +27,7 @@ Create a new domain and receive DNS records to configure.
|
|
|
27
27
|
| `--name <domain>` | string | Yes (non-interactive) | Domain name (e.g., `example.com`) |
|
|
28
28
|
| `--region <region>` | string | No | `us-east-1` \| `eu-west-1` \| `sa-east-1` \| `ap-northeast-1` |
|
|
29
29
|
| `--tls <mode>` | string | No | `opportunistic` (default) \| `enforced` |
|
|
30
|
+
| `--tracking-subdomain <subdomain>` | string | No | Subdomain for click and open tracking (e.g., `track`) |
|
|
30
31
|
| `--sending` | boolean | No | Enable sending (default: enabled) |
|
|
31
32
|
| `--receiving` | boolean | No | Enable receiving (default: disabled) |
|
|
32
33
|
|
|
@@ -38,7 +39,7 @@ Create a new domain and receive DNS records to configure.
|
|
|
38
39
|
|
|
39
40
|
**Argument:** `<id>` — Domain ID
|
|
40
41
|
|
|
41
|
-
Returns full domain with `records[]`, `status` (`not_started`|`pending`|`verified`|`failed`|`temporary_failure`), `capabilities`, `region`.
|
|
42
|
+
Returns full domain with `records[]`, `status` (`not_started`|`pending`|`verified`|`failed`|`temporary_failure`), `capabilities`, `region`, `open_tracking`, `click_tracking`, `tracking_subdomain`. Records may include a `Tracking` CNAME record when a tracking subdomain is configured, and a `TrackingCAA` CAA record when the root domain has CAA records that require an additional entry for AWS certificate issuance.
|
|
42
43
|
|
|
43
44
|
---
|
|
44
45
|
|
|
@@ -63,6 +64,7 @@ Trigger async DNS verification.
|
|
|
63
64
|
| `--no-open-tracking` | boolean | Disable open tracking |
|
|
64
65
|
| `--click-tracking` | boolean | Enable click tracking |
|
|
65
66
|
| `--no-click-tracking` | boolean | Disable click tracking |
|
|
67
|
+
| `--tracking-subdomain <subdomain>` | string | Subdomain for click and open tracking (e.g., `track`) |
|
|
66
68
|
|
|
67
69
|
At least one option required.
|
|
68
70
|
|
|
@@ -20,7 +20,7 @@ All errors exit with code `1` and output JSON to **stderr**:
|
|
|
20
20
|
| Code | Cause | Resolution |
|
|
21
21
|
|------|-------|------------|
|
|
22
22
|
| `missing_body` | None of `--text`, `--html`, `--html-file`, or `--react-email` provided | Provide at least one body flag |
|
|
23
|
-
| `react_email_build_error` | Failed to bundle a React Email `.tsx` template with esbuild | Check the template compiles; ensure `react` and `@react-email/render
|
|
23
|
+
| `react_email_build_error` | Failed to bundle a React Email `.tsx` template with esbuild | Check the template compiles; ensure `react` and one of `@react-email/render`, `@react-email/components`, or `react-email` are installed in the project |
|
|
24
24
|
| `react_email_render_error` | Bundled template failed during `render()` | Check the component exports a default function and renders valid React Email markup |
|
|
25
25
|
| `file_read_error` | Could not read file from `--html-file` path | Check file path exists and is readable |
|
|
26
26
|
| `send_error` | Resend API rejected the send request | Check from address is on a verified domain; check recipient is valid |
|