resend-cli 1.0.3 → 1.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/.claude/settings.local.json +14 -0
- package/.github/scripts/pr-title-check.js +34 -0
- package/.github/workflows/ci.yml +32 -0
- package/.github/workflows/pr-title-check.yml +13 -0
- package/.github/workflows/release.yml +93 -0
- package/CHANGELOG.md +31 -0
- package/LICENSE +21 -21
- package/README.md +416 -19
- package/biome.json +36 -0
- package/bun.lock +76 -0
- package/bunfig.toml +2 -0
- package/install.ps1 +140 -0
- package/install.sh +294 -0
- package/package.json +43 -22
- package/src/cli.ts +65 -0
- package/src/commands/api-keys/create.ts +114 -0
- package/src/commands/api-keys/delete.ts +47 -0
- package/src/commands/api-keys/index.ts +26 -0
- package/src/commands/api-keys/list.ts +35 -0
- package/src/commands/api-keys/utils.ts +8 -0
- package/src/commands/auth/index.ts +20 -0
- package/src/commands/auth/login.ts +211 -0
- package/src/commands/auth/logout.ts +105 -0
- package/src/commands/broadcasts/create.ts +196 -0
- package/src/commands/broadcasts/delete.ts +46 -0
- package/src/commands/broadcasts/get.ts +59 -0
- package/src/commands/broadcasts/index.ts +43 -0
- package/src/commands/broadcasts/list.ts +60 -0
- package/src/commands/broadcasts/send.ts +56 -0
- package/src/commands/broadcasts/update.ts +95 -0
- package/src/commands/broadcasts/utils.ts +35 -0
- package/src/commands/contact-properties/create.ts +118 -0
- package/src/commands/contact-properties/delete.ts +48 -0
- package/src/commands/contact-properties/get.ts +46 -0
- package/src/commands/contact-properties/index.ts +48 -0
- package/src/commands/contact-properties/list.ts +68 -0
- package/src/commands/contact-properties/update.ts +88 -0
- package/src/commands/contact-properties/utils.ts +17 -0
- package/src/commands/contacts/add-segment.ts +78 -0
- package/src/commands/contacts/create.ts +122 -0
- package/src/commands/contacts/delete.ts +49 -0
- package/src/commands/contacts/get.ts +53 -0
- package/src/commands/contacts/index.ts +58 -0
- package/src/commands/contacts/list.ts +57 -0
- package/src/commands/contacts/remove-segment.ts +48 -0
- package/src/commands/contacts/segments.ts +39 -0
- package/src/commands/contacts/topics.ts +45 -0
- package/src/commands/contacts/update-topics.ts +90 -0
- package/src/commands/contacts/update.ts +77 -0
- package/src/commands/contacts/utils.ts +119 -0
- package/src/commands/doctor.ts +298 -0
- package/src/commands/domains/create.ts +83 -0
- package/src/commands/domains/delete.ts +42 -0
- package/src/commands/domains/get.ts +47 -0
- package/src/commands/domains/index.ts +35 -0
- package/src/commands/domains/list.ts +53 -0
- package/src/commands/domains/update.ts +75 -0
- package/src/commands/domains/utils.ts +44 -0
- package/src/commands/domains/verify.ts +38 -0
- package/src/commands/emails/batch.ts +140 -0
- package/src/commands/emails/index.ts +24 -0
- package/src/commands/emails/receiving/attachment.ts +55 -0
- package/src/commands/emails/receiving/attachments.ts +68 -0
- package/src/commands/emails/receiving/get.ts +58 -0
- package/src/commands/emails/receiving/index.ts +28 -0
- package/src/commands/emails/receiving/list.ts +59 -0
- package/src/commands/emails/receiving/utils.ts +38 -0
- package/src/commands/emails/send.ts +189 -0
- package/src/commands/segments/create.ts +50 -0
- package/src/commands/segments/delete.ts +47 -0
- package/src/commands/segments/get.ts +38 -0
- package/src/commands/segments/index.ts +36 -0
- package/src/commands/segments/list.ts +58 -0
- package/src/commands/segments/utils.ts +7 -0
- package/src/commands/teams/index.ts +10 -0
- package/src/commands/teams/list.ts +35 -0
- package/src/commands/teams/remove.ts +83 -0
- package/src/commands/teams/switch.ts +73 -0
- package/src/commands/topics/create.ts +73 -0
- package/src/commands/topics/delete.ts +47 -0
- package/src/commands/topics/get.ts +42 -0
- package/src/commands/topics/index.ts +42 -0
- package/src/commands/topics/list.ts +34 -0
- package/src/commands/topics/update.ts +59 -0
- package/src/commands/topics/utils.ts +16 -0
- package/src/commands/webhooks/create.ts +128 -0
- package/src/commands/webhooks/delete.ts +49 -0
- package/src/commands/webhooks/get.ts +42 -0
- package/src/commands/webhooks/index.ts +44 -0
- package/src/commands/webhooks/list.ts +55 -0
- package/src/commands/webhooks/update.ts +83 -0
- package/src/commands/webhooks/utils.ts +36 -0
- package/src/commands/whoami.ts +71 -0
- package/src/lib/actions.ts +157 -0
- package/src/lib/client.ts +29 -0
- package/src/lib/config.ts +211 -0
- package/src/lib/files.ts +15 -0
- package/src/lib/help-text.ts +36 -0
- package/src/lib/output.ts +54 -0
- package/src/lib/pagination.ts +36 -0
- package/src/lib/prompts.ts +149 -0
- package/src/lib/spinner.ts +89 -0
- package/src/lib/table.ts +57 -0
- package/src/lib/tty.ts +28 -0
- package/src/lib/version.ts +4 -0
- package/tests/commands/api-keys/create.test.ts +195 -0
- package/tests/commands/api-keys/delete.test.ts +156 -0
- package/tests/commands/api-keys/list.test.ts +133 -0
- package/tests/commands/auth/login.test.ts +119 -0
- package/tests/commands/auth/logout.test.ts +146 -0
- package/tests/commands/broadcasts/create.test.ts +447 -0
- package/tests/commands/broadcasts/delete.test.ts +182 -0
- package/tests/commands/broadcasts/get.test.ts +146 -0
- package/tests/commands/broadcasts/list.test.ts +196 -0
- package/tests/commands/broadcasts/send.test.ts +161 -0
- package/tests/commands/broadcasts/update.test.ts +283 -0
- package/tests/commands/contact-properties/create.test.ts +250 -0
- package/tests/commands/contact-properties/delete.test.ts +183 -0
- package/tests/commands/contact-properties/get.test.ts +144 -0
- package/tests/commands/contact-properties/list.test.ts +180 -0
- package/tests/commands/contact-properties/update.test.ts +216 -0
- package/tests/commands/contacts/add-segment.test.ts +188 -0
- package/tests/commands/contacts/create.test.ts +270 -0
- package/tests/commands/contacts/delete.test.ts +192 -0
- package/tests/commands/contacts/get.test.ts +148 -0
- package/tests/commands/contacts/list.test.ts +175 -0
- package/tests/commands/contacts/remove-segment.test.ts +166 -0
- package/tests/commands/contacts/segments.test.ts +167 -0
- package/tests/commands/contacts/topics.test.ts +163 -0
- package/tests/commands/contacts/update-topics.test.ts +247 -0
- package/tests/commands/contacts/update.test.ts +205 -0
- package/tests/commands/doctor.test.ts +165 -0
- package/tests/commands/domains/create.test.ts +192 -0
- package/tests/commands/domains/delete.test.ts +156 -0
- package/tests/commands/domains/get.test.ts +137 -0
- package/tests/commands/domains/list.test.ts +164 -0
- package/tests/commands/domains/update.test.ts +223 -0
- package/tests/commands/domains/verify.test.ts +117 -0
- package/tests/commands/emails/batch.test.ts +313 -0
- package/tests/commands/emails/receiving/attachment.test.ts +140 -0
- package/tests/commands/emails/receiving/attachments.test.ts +168 -0
- package/tests/commands/emails/receiving/get.test.ts +140 -0
- package/tests/commands/emails/receiving/list.test.ts +181 -0
- package/tests/commands/emails/send.test.ts +309 -0
- package/tests/commands/segments/create.test.ts +163 -0
- package/tests/commands/segments/delete.test.ts +182 -0
- package/tests/commands/segments/get.test.ts +137 -0
- package/tests/commands/segments/list.test.ts +173 -0
- package/tests/commands/teams/list.test.ts +63 -0
- package/tests/commands/teams/remove.test.ts +103 -0
- package/tests/commands/teams/switch.test.ts +96 -0
- package/tests/commands/topics/create.test.ts +191 -0
- package/tests/commands/topics/delete.test.ts +156 -0
- package/tests/commands/topics/get.test.ts +125 -0
- package/tests/commands/topics/list.test.ts +124 -0
- package/tests/commands/topics/update.test.ts +177 -0
- package/tests/commands/webhooks/create.test.ts +224 -0
- package/tests/commands/webhooks/delete.test.ts +156 -0
- package/tests/commands/webhooks/get.test.ts +125 -0
- package/tests/commands/webhooks/list.test.ts +177 -0
- package/tests/commands/webhooks/update.test.ts +206 -0
- package/tests/commands/whoami.test.ts +99 -0
- package/tests/helpers.ts +93 -0
- package/tests/lib/client.test.ts +71 -0
- package/tests/lib/config.test.ts +414 -0
- package/tests/lib/files.test.ts +65 -0
- package/tests/lib/help-text.test.ts +96 -0
- package/tests/lib/output.test.ts +127 -0
- package/tests/lib/prompts.test.ts +178 -0
- package/tests/lib/spinner.test.ts +146 -0
- package/tests/lib/table.test.ts +63 -0
- package/tests/lib/tty.test.ts +85 -0
- package/tsconfig.json +14 -0
- package/src/index.js +0 -72
- package/src/routes.js +0 -37
- package/src/sections/apikeys.js +0 -99
- package/src/sections/audiences.js +0 -84
- package/src/sections/contacts.js +0 -177
- package/src/sections/domain.js +0 -195
- package/src/sections/email.js +0 -132
package/biome.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.6/schema.json",
|
|
3
|
+
"assist": {
|
|
4
|
+
"actions": {
|
|
5
|
+
"source": {
|
|
6
|
+
"organizeImports": "on"
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"formatter": {
|
|
11
|
+
"indentStyle": "space",
|
|
12
|
+
"indentWidth": 2,
|
|
13
|
+
"lineWidth": 80
|
|
14
|
+
},
|
|
15
|
+
"javascript": {
|
|
16
|
+
"formatter": {
|
|
17
|
+
"quoteStyle": "single"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"linter": {
|
|
21
|
+
"enabled": true,
|
|
22
|
+
"rules": {
|
|
23
|
+
"recommended": true,
|
|
24
|
+
"correctness": {
|
|
25
|
+
"noUnusedImports": "error",
|
|
26
|
+
"noUnusedVariables": "error"
|
|
27
|
+
},
|
|
28
|
+
"style": {
|
|
29
|
+
"useBlockStatements": "error"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"files": {
|
|
34
|
+
"includes": ["**", "!**/dist", "!**/bun.lock"]
|
|
35
|
+
}
|
|
36
|
+
}
|
package/bun.lock
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lockfileVersion": 1,
|
|
3
|
+
"configVersion": 0,
|
|
4
|
+
"workspaces": {
|
|
5
|
+
"": {
|
|
6
|
+
"name": "resend-cli",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@clack/prompts": "1.1.0",
|
|
9
|
+
"@commander-js/extra-typings": "14.0.0",
|
|
10
|
+
"commander": "14.0.3",
|
|
11
|
+
"resend": "6.9.3",
|
|
12
|
+
"unicode-animations": "1.0.3",
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@biomejs/biome": "2.4.6",
|
|
16
|
+
"@types/bun": "1.3.10",
|
|
17
|
+
"typescript": "5.9.3",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
"packages": {
|
|
22
|
+
"@biomejs/biome": ["@biomejs/biome@2.4.6", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.4.6", "@biomejs/cli-darwin-x64": "2.4.6", "@biomejs/cli-linux-arm64": "2.4.6", "@biomejs/cli-linux-arm64-musl": "2.4.6", "@biomejs/cli-linux-x64": "2.4.6", "@biomejs/cli-linux-x64-musl": "2.4.6", "@biomejs/cli-win32-arm64": "2.4.6", "@biomejs/cli-win32-x64": "2.4.6" }, "bin": { "biome": "bin/biome" } }, "sha512-QnHe81PMslpy3mnpL8DnO2M4S4ZnYPkjlGCLWBZT/3R9M6b5daArWMMtEfP52/n174RKnwRIf3oT8+wc9ihSfQ=="],
|
|
23
|
+
|
|
24
|
+
"@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.4.6", "", { "os": "darwin", "cpu": "arm64" }, "sha512-NW18GSyxr+8sJIqgoGwVp5Zqm4SALH4b4gftIA0n62PTuBs6G2tHlwNAOj0Vq0KKSs7Sf88VjjmHh0O36EnzrQ=="],
|
|
25
|
+
|
|
26
|
+
"@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.4.6", "", { "os": "darwin", "cpu": "x64" }, "sha512-4uiE/9tuI7cnjtY9b07RgS7gGyYOAfIAGeVJWEfeCnAarOAS7qVmuRyX6d7JTKw28/mt+rUzMasYeZ+0R/U1Mw=="],
|
|
27
|
+
|
|
28
|
+
"@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.4.6", "", { "os": "linux", "cpu": "arm64" }, "sha512-kMLaI7OF5GN1Q8Doymjro1P8rVEoy7BKQALNz6fiR8IC1WKduoNyteBtJlHT7ASIL0Cx2jR6VUOBIbcB1B8pew=="],
|
|
29
|
+
|
|
30
|
+
"@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.4.6", "", { "os": "linux", "cpu": "arm64" }, "sha512-F/JdB7eN22txiTqHM5KhIVt0jVkzZwVYrdTR1O3Y4auBOQcXxHK4dxULf4z43QyZI5tsnQJrRBHZy7wwtL+B3A=="],
|
|
31
|
+
|
|
32
|
+
"@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.4.6", "", { "os": "linux", "cpu": "x64" }, "sha512-oHXmUFEoH8Lql1xfc3QkFLiC1hGR7qedv5eKNlC185or+o4/4HiaU7vYODAH3peRCfsuLr1g6v2fK9dFFOYdyw=="],
|
|
33
|
+
|
|
34
|
+
"@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.4.6", "", { "os": "linux", "cpu": "x64" }, "sha512-C9s98IPDu7DYarjlZNuzJKTjVHN03RUnmHV5htvqsx6vEUXCDSJ59DNwjKVD5XYoSS4N+BYhq3RTBAL8X6svEg=="],
|
|
35
|
+
|
|
36
|
+
"@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.4.6", "", { "os": "win32", "cpu": "arm64" }, "sha512-xzThn87Pf3YrOGTEODFGONmqXpTwUNxovQb72iaUOdcw8sBSY3+3WD8Hm9IhMYLnPi0n32s3L3NWU6+eSjfqFg=="],
|
|
37
|
+
|
|
38
|
+
"@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.4.6", "", { "os": "win32", "cpu": "x64" }, "sha512-7++XhnsPlr1HDbor5amovPjOH6vsrFOCdp93iKXhFn6bcMUI6soodj3WWKfgEO6JosKU1W5n3uky3WW9RlRjTg=="],
|
|
39
|
+
|
|
40
|
+
"@clack/core": ["@clack/core@1.1.0", "", { "dependencies": { "sisteransi": "^1.0.5" } }, "sha512-SVcm4Dqm2ukn64/8Gub2wnlA5nS2iWJyCkdNHcvNHPIeBTGojpdJ+9cZKwLfmqy7irD4N5qLteSilJlE0WLAtA=="],
|
|
41
|
+
|
|
42
|
+
"@clack/prompts": ["@clack/prompts@1.1.0", "", { "dependencies": { "@clack/core": "1.1.0", "sisteransi": "^1.0.5" } }, "sha512-pkqbPGtohJAvm4Dphs2M8xE29ggupihHdy1x84HNojZuMtFsHiUlRvqD24tM2+XmI+61LlfNceM3Wr7U5QES5g=="],
|
|
43
|
+
|
|
44
|
+
"@commander-js/extra-typings": ["@commander-js/extra-typings@14.0.0", "", { "peerDependencies": { "commander": "~14.0.0" } }, "sha512-hIn0ncNaJRLkZrxBIp5AsW/eXEHNKYQBh0aPdoUqNgD+Io3NIykQqpKFyKcuasZhicGaEZJX/JBSIkZ4e5x8Dg=="],
|
|
45
|
+
|
|
46
|
+
"@stablelib/base64": ["@stablelib/base64@1.0.1", "", {}, "sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ=="],
|
|
47
|
+
|
|
48
|
+
"@types/bun": ["@types/bun@1.3.10", "", { "dependencies": { "bun-types": "1.3.10" } }, "sha512-0+rlrUrOrTSskibryHbvQkDOWRJwJZqZlxrUs1u4oOoTln8+WIXBPmAuCF35SWB2z4Zl3E84Nl/D0P7803nigQ=="],
|
|
49
|
+
|
|
50
|
+
"@types/node": ["@types/node@25.2.3", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-m0jEgYlYz+mDJZ2+F4v8D1AyQb+QzsNqRuI7xg1VQX/KlKS0qT9r1Mo16yo5F/MtifXFgaofIFsdFMox2SxIbQ=="],
|
|
51
|
+
|
|
52
|
+
"bun-types": ["bun-types@1.3.10", "", { "dependencies": { "@types/node": "*" } }, "sha512-tcpfCCl6XWo6nCVnpcVrxQ+9AYN1iqMIzgrSKYMB/fjLtV2eyAVEg7AxQJuCq/26R6HpKWykQXuSOq/21RYcbg=="],
|
|
53
|
+
|
|
54
|
+
"commander": ["commander@14.0.3", "", {}, "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw=="],
|
|
55
|
+
|
|
56
|
+
"fast-sha256": ["fast-sha256@1.3.0", "", {}, "sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ=="],
|
|
57
|
+
|
|
58
|
+
"postal-mime": ["postal-mime@2.7.3", "", {}, "sha512-MjhXadAJaWgYzevi46+3kLak8y6gbg0ku14O1gO/LNOuay8dO+1PtcSGvAdgDR0DoIsSaiIA8y/Ddw6MnrO0Tw=="],
|
|
59
|
+
|
|
60
|
+
"resend": ["resend@6.9.3", "", { "dependencies": { "postal-mime": "2.7.3", "svix": "1.84.1" }, "peerDependencies": { "@react-email/render": "*" }, "optionalPeers": ["@react-email/render"] }, "sha512-GRXjH9XZBJA+daH7bBVDuTShr22iWCxXA8P7t495G4dM/RC+d+3gHBK/6bz9K6Vpcq11zRQKmD+B+jECwQlyGQ=="],
|
|
61
|
+
|
|
62
|
+
"sisteransi": ["sisteransi@1.0.5", "", {}, "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg=="],
|
|
63
|
+
|
|
64
|
+
"standardwebhooks": ["standardwebhooks@1.0.0", "", { "dependencies": { "@stablelib/base64": "^1.0.0", "fast-sha256": "^1.3.0" } }, "sha512-BbHGOQK9olHPMvQNHWul6MYlrRTAOKn03rOe4A8O3CLWhNf4YHBqq2HJKKC+sfqpxiBY52pNeesD6jIiLDz8jg=="],
|
|
65
|
+
|
|
66
|
+
"svix": ["svix@1.84.1", "", { "dependencies": { "standardwebhooks": "1.0.0", "uuid": "^10.0.0" } }, "sha512-K8DPPSZaW/XqXiz1kEyzSHYgmGLnhB43nQCMeKjWGCUpLIpAMMM8kx3rVVOSm6Bo6EHyK1RQLPT4R06skM/MlQ=="],
|
|
67
|
+
|
|
68
|
+
"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
|
|
69
|
+
|
|
70
|
+
"undici-types": ["undici-types@7.16.0", "", {}, "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="],
|
|
71
|
+
|
|
72
|
+
"unicode-animations": ["unicode-animations@1.0.3", "", { "dependencies": { "unicode-animations": "^1.0.1" }, "bin": { "unicode-animations": "scripts/demo.cjs" } }, "sha512-+klB2oWwcYZjYWhwP4Pr8UZffWDFVx6jKeIahE6z0QYyM2dwDeDPyn5nevCYbyotxvtT9lh21cVURO1RX0+YMg=="],
|
|
73
|
+
|
|
74
|
+
"uuid": ["uuid@10.0.0", "", { "bin": { "uuid": "dist/bin/uuid" } }, "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ=="],
|
|
75
|
+
}
|
|
76
|
+
}
|
package/bunfig.toml
ADDED
package/install.ps1
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
#!/usr/bin/env pwsh
|
|
2
|
+
# Resend CLI installer for Windows
|
|
3
|
+
#
|
|
4
|
+
# Usage (PowerShell):
|
|
5
|
+
# irm https://resend.com/install.ps1 | iex
|
|
6
|
+
#
|
|
7
|
+
# Pin a version:
|
|
8
|
+
# $env:RESEND_VERSION = 'v0.1.0'; irm https://resend.com/install.ps1 | iex
|
|
9
|
+
#
|
|
10
|
+
# Environment variables:
|
|
11
|
+
# RESEND_INSTALL - Custom install directory (default: $HOME\.resend)
|
|
12
|
+
# RESEND_VERSION - Version to install (default: latest)
|
|
13
|
+
|
|
14
|
+
param(
|
|
15
|
+
[string]$Version = $env:RESEND_VERSION
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
Set-StrictMode -Version Latest
|
|
19
|
+
$ErrorActionPreference = 'Stop'
|
|
20
|
+
|
|
21
|
+
# ─── Helpers ─────────────────────────────────────────────────────────────────
|
|
22
|
+
|
|
23
|
+
function Write-Info { param($msg) Write-Host " $msg" -ForegroundColor DarkGray }
|
|
24
|
+
function Write-Ok { param($msg) Write-Host " $msg" -ForegroundColor Green }
|
|
25
|
+
|
|
26
|
+
function Write-Fail {
|
|
27
|
+
param($msg)
|
|
28
|
+
Write-Host " error: $msg" -ForegroundColor Red
|
|
29
|
+
exit 1
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
# ─── Architecture detection ───────────────────────────────────────────────────
|
|
33
|
+
|
|
34
|
+
if ($env:PROCESSOR_ARCHITECTURE -notin @('AMD64', 'EM64T')) {
|
|
35
|
+
Write-Fail "Unsupported architecture: $env:PROCESSOR_ARCHITECTURE`n`n Resend CLI currently supports Windows x64 only."
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
# ─── Version + Download URL ───────────────────────────────────────────────────
|
|
39
|
+
|
|
40
|
+
$repo = 'https://github.com/resend/resend-cli'
|
|
41
|
+
$target = 'windows-x64'
|
|
42
|
+
|
|
43
|
+
if ($Version) {
|
|
44
|
+
$Version = $Version.TrimStart('v')
|
|
45
|
+
if ($Version -notmatch '^\d+\.\d+\.\d+(-[a-zA-Z0-9.]+)?$') {
|
|
46
|
+
Write-Fail "Invalid version format: $Version`n`n Expected: semantic version like 0.1.0 or 1.2.3-beta.1`n Usage: `$env:RESEND_VERSION = 'v0.1.0'; irm https://resend.com/install.ps1 | iex"
|
|
47
|
+
}
|
|
48
|
+
$url = "$repo/releases/download/v$Version/resend-$target.zip"
|
|
49
|
+
} else {
|
|
50
|
+
$url = "$repo/releases/latest/download/resend-$target.zip"
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
# ─── Install directory ────────────────────────────────────────────────────────
|
|
54
|
+
|
|
55
|
+
$installDir = if ($env:RESEND_INSTALL) { $env:RESEND_INSTALL } else { Join-Path $HOME '.resend' }
|
|
56
|
+
$binDir = Join-Path $installDir 'bin'
|
|
57
|
+
$exe = Join-Path $binDir 'resend.exe'
|
|
58
|
+
|
|
59
|
+
if (-not (Test-Path $binDir)) {
|
|
60
|
+
New-Item -ItemType Directory -Path $binDir -Force | Out-Null
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
# ─── Download + Extract ───────────────────────────────────────────────────────
|
|
64
|
+
|
|
65
|
+
Write-Host ""
|
|
66
|
+
Write-Host " Installing Resend CLI..." -ForegroundColor White
|
|
67
|
+
Write-Host ""
|
|
68
|
+
Write-Info "Downloading from $url"
|
|
69
|
+
Write-Host ""
|
|
70
|
+
|
|
71
|
+
$tmpDir = Join-Path ([System.IO.Path]::GetTempPath()) "resend-$([System.Guid]::NewGuid())"
|
|
72
|
+
New-Item -ItemType Directory -Path $tmpDir -Force | Out-Null
|
|
73
|
+
$tmpZip = Join-Path $tmpDir 'resend.zip'
|
|
74
|
+
|
|
75
|
+
try {
|
|
76
|
+
try {
|
|
77
|
+
# Force TLS 1.2 for Windows PowerShell 5.1 (no-op on PowerShell 7+ where it is the default)
|
|
78
|
+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
|
79
|
+
$ProgressPreference = 'SilentlyContinue' # Invoke-WebRequest is ~10x faster without progress bar
|
|
80
|
+
Invoke-WebRequest -Uri $url -OutFile $tmpZip -UseBasicParsing
|
|
81
|
+
} catch {
|
|
82
|
+
Write-Fail "Download failed.`n`n Possible causes:`n - No internet connection`n - The version does not exist: $(if ($Version) { $Version } else { 'latest' })`n - GitHub is unreachable`n`n URL: $url"
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
try {
|
|
86
|
+
Expand-Archive -Path $tmpZip -DestinationPath $binDir -Force
|
|
87
|
+
} catch {
|
|
88
|
+
Write-Fail "Failed to extract archive: $_"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
finally {
|
|
92
|
+
Remove-Item -Recurse -Force $tmpDir -ErrorAction SilentlyContinue
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (-not (Test-Path $exe)) {
|
|
96
|
+
Write-Fail "Binary not found after extraction. The download may be corrupted — try again."
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
# ─── Verify installation ──────────────────────────────────────────────────────
|
|
100
|
+
|
|
101
|
+
try {
|
|
102
|
+
$installedVersion = (& $exe --version 2>$null).Trim()
|
|
103
|
+
} catch {
|
|
104
|
+
$installedVersion = 'unknown'
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
Write-Host ""
|
|
108
|
+
Write-Ok "Resend CLI $installedVersion installed successfully!"
|
|
109
|
+
Write-Host ""
|
|
110
|
+
Write-Info "Binary: $exe"
|
|
111
|
+
|
|
112
|
+
# ─── PATH setup ───────────────────────────────────────────────────────────────
|
|
113
|
+
|
|
114
|
+
$userPath = [Environment]::GetEnvironmentVariable('PATH', 'User') ?? ''
|
|
115
|
+
$pathEntries = $userPath -split ';' | Where-Object { $_ -ne '' }
|
|
116
|
+
|
|
117
|
+
if ($pathEntries -contains $binDir) {
|
|
118
|
+
# Already on PATH — just print the getting-started line
|
|
119
|
+
Write-Host ""
|
|
120
|
+
Write-Host " Run " -NoNewline
|
|
121
|
+
Write-Host "resend --help" -ForegroundColor Cyan -NoNewline
|
|
122
|
+
Write-Host " to get started"
|
|
123
|
+
Write-Host ""
|
|
124
|
+
exit 0
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
# Add to user PATH (persists across sessions — no admin rights needed)
|
|
128
|
+
$newPath = ($pathEntries + $binDir) -join ';'
|
|
129
|
+
[Environment]::SetEnvironmentVariable('PATH', $newPath, 'User')
|
|
130
|
+
$env:PATH = "$env:PATH;$binDir" # Also update the current session
|
|
131
|
+
|
|
132
|
+
Write-Info "Added $binDir to PATH (User scope)"
|
|
133
|
+
Write-Host ""
|
|
134
|
+
Write-Info "Restart your terminal, then:"
|
|
135
|
+
Write-Host ""
|
|
136
|
+
Write-Info "Next steps:"
|
|
137
|
+
Write-Host ""
|
|
138
|
+
Write-Host " `$env:RESEND_API_KEY = 're_...'" -ForegroundColor Cyan
|
|
139
|
+
Write-Host " resend --help" -ForegroundColor Cyan
|
|
140
|
+
Write-Host ""
|
package/install.sh
ADDED
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Resend CLI installer
|
|
3
|
+
#
|
|
4
|
+
# Usage:
|
|
5
|
+
# curl -fsSL https://resend.com/install.sh | bash
|
|
6
|
+
# curl -fsSL https://resend.com/install.sh | bash -s v0.1.0
|
|
7
|
+
#
|
|
8
|
+
# Environment variables:
|
|
9
|
+
# RESEND_INSTALL - Custom install directory (default: ~/.resend)
|
|
10
|
+
# GITHUB_BASE - Custom GitHub base URL (default: https://github.com)
|
|
11
|
+
|
|
12
|
+
# Wrap everything in a function to protect against partial download.
|
|
13
|
+
# If the connection drops mid-transfer, bash won't execute a truncated script.
|
|
14
|
+
main() {
|
|
15
|
+
|
|
16
|
+
set -euo pipefail
|
|
17
|
+
|
|
18
|
+
# ─── Colors (only when outputting to a terminal) ─────────────────────────────
|
|
19
|
+
|
|
20
|
+
Color_Off='' Red='' Green='' Dim='' Bold='' Blue='' Yellow=''
|
|
21
|
+
|
|
22
|
+
if [[ -t 1 ]]; then
|
|
23
|
+
Color_Off='\033[0m'
|
|
24
|
+
Red='\033[0;31m'
|
|
25
|
+
Green='\033[0;32m'
|
|
26
|
+
Yellow='\033[0;33m'
|
|
27
|
+
Dim='\033[0;2m'
|
|
28
|
+
Bold='\033[1m'
|
|
29
|
+
Blue='\033[0;34m'
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
# ─── Helpers ─────────────────────────────────────────────────────────────────
|
|
33
|
+
|
|
34
|
+
error() {
|
|
35
|
+
printf "%b\n" "${Red}error${Color_Off}: $*" >&2
|
|
36
|
+
exit 1
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
warn() {
|
|
40
|
+
printf "%b\n" "${Yellow}warn${Color_Off}: $*" >&2
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
info() {
|
|
44
|
+
printf "%b\n" "${Dim}$*${Color_Off}"
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
success() {
|
|
48
|
+
printf "%b\n" "${Green}$*${Color_Off}"
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
bold() {
|
|
52
|
+
printf "%b\n" "${Bold}$*${Color_Off}"
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
tildify() {
|
|
56
|
+
if [[ $1 == "$HOME"/* ]]; then
|
|
57
|
+
echo "~${1#"$HOME"}"
|
|
58
|
+
else
|
|
59
|
+
echo "$1"
|
|
60
|
+
fi
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
# ─── Dependency checks ──────────────────────────────────────────────────────
|
|
64
|
+
|
|
65
|
+
command -v curl >/dev/null 2>&1 || error "curl is required but not found. Install it and try again."
|
|
66
|
+
command -v tar >/dev/null 2>&1 || error "tar is required but not found. Install it and try again."
|
|
67
|
+
|
|
68
|
+
# ─── OS / Architecture detection ────────────────────────────────────────────
|
|
69
|
+
|
|
70
|
+
platform=$(uname -ms)
|
|
71
|
+
|
|
72
|
+
case $platform in
|
|
73
|
+
'Darwin x86_64') target=darwin-x64 ;;
|
|
74
|
+
'Darwin arm64') target=darwin-arm64 ;;
|
|
75
|
+
'Linux aarch64') target=linux-arm64 ;;
|
|
76
|
+
'Linux arm64') target=linux-arm64 ;;
|
|
77
|
+
'Linux x86_64') target=linux-x64 ;;
|
|
78
|
+
*)
|
|
79
|
+
error "Unsupported platform: ${platform}.
|
|
80
|
+
|
|
81
|
+
Resend CLI supports:
|
|
82
|
+
- macOS (Apple Silicon / Intel)
|
|
83
|
+
- Linux (x64 / arm64)
|
|
84
|
+
|
|
85
|
+
For Windows, run this in PowerShell:
|
|
86
|
+
irm https://resend.com/install.ps1 | iex"
|
|
87
|
+
;;
|
|
88
|
+
esac
|
|
89
|
+
|
|
90
|
+
# Detect Rosetta 2 on macOS — prefer native arm64 binary
|
|
91
|
+
if [[ $target == "darwin-x64" ]]; then
|
|
92
|
+
if [[ $(sysctl -n sysctl.proc_translated 2>/dev/null || echo 0) == "1" ]]; then
|
|
93
|
+
target=darwin-arm64
|
|
94
|
+
info " Rosetta 2 detected — installing native arm64 binary"
|
|
95
|
+
fi
|
|
96
|
+
fi
|
|
97
|
+
|
|
98
|
+
# Detect musl (Alpine Linux) — glibc binaries won't work
|
|
99
|
+
if [[ $target == linux-* ]]; then
|
|
100
|
+
if ldd --version 2>&1 | grep -qi musl 2>/dev/null; then
|
|
101
|
+
error "Alpine Linux (musl) is not currently supported.
|
|
102
|
+
|
|
103
|
+
The compiled binary requires glibc. Use one of these alternatives:
|
|
104
|
+
- npm install -g resend-cli
|
|
105
|
+
- Run in a glibc-based container (e.g., ubuntu, debian)"
|
|
106
|
+
fi
|
|
107
|
+
fi
|
|
108
|
+
|
|
109
|
+
# ─── Version + Download URL ─────────────────────────────────────────────────
|
|
110
|
+
|
|
111
|
+
GITHUB_BASE=${GITHUB_BASE:-"https://github.com"}
|
|
112
|
+
|
|
113
|
+
# Validate GITHUB_BASE is HTTPS to prevent download from arbitrary sources
|
|
114
|
+
case "$GITHUB_BASE" in
|
|
115
|
+
https://*) ;;
|
|
116
|
+
*) error "GITHUB_BASE must start with https:// (got: ${GITHUB_BASE})" ;;
|
|
117
|
+
esac
|
|
118
|
+
|
|
119
|
+
REPO="${GITHUB_BASE}/resend/resend-cli"
|
|
120
|
+
|
|
121
|
+
VERSION=${1:-}
|
|
122
|
+
|
|
123
|
+
# Validate version format if provided
|
|
124
|
+
if [[ -n $VERSION ]]; then
|
|
125
|
+
# Strip leading 'v' if present, then re-add for the tag
|
|
126
|
+
VERSION="${VERSION#v}"
|
|
127
|
+
if ! [[ $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?$ ]]; then
|
|
128
|
+
error "Invalid version format: ${VERSION}
|
|
129
|
+
|
|
130
|
+
Expected: semantic version like 0.1.0 or 1.2.3-beta.1
|
|
131
|
+
Usage: curl -fsSL https://resend.com/install.sh | bash -s v0.1.0"
|
|
132
|
+
fi
|
|
133
|
+
url="${REPO}/releases/download/v${VERSION}/resend-${target}.tar.gz"
|
|
134
|
+
else
|
|
135
|
+
url="${REPO}/releases/latest/download/resend-${target}.tar.gz"
|
|
136
|
+
fi
|
|
137
|
+
|
|
138
|
+
# ─── Install directory ──────────────────────────────────────────────────────
|
|
139
|
+
|
|
140
|
+
install_dir="${RESEND_INSTALL:-$HOME/.resend}"
|
|
141
|
+
bin_dir="${install_dir}/bin"
|
|
142
|
+
exe="${bin_dir}/resend"
|
|
143
|
+
|
|
144
|
+
mkdir -p "$bin_dir" || error "Failed to create install directory: ${bin_dir}"
|
|
145
|
+
|
|
146
|
+
# ─── Download + Extract ─────────────────────────────────────────────────────
|
|
147
|
+
|
|
148
|
+
echo ""
|
|
149
|
+
bold " Installing Resend CLI..."
|
|
150
|
+
echo ""
|
|
151
|
+
|
|
152
|
+
tmpdir=$(mktemp -d) || error "Failed to create temporary directory"
|
|
153
|
+
trap 'rm -rf "$tmpdir"' EXIT INT TERM
|
|
154
|
+
|
|
155
|
+
tmpfile="${tmpdir}/resend.tar.gz"
|
|
156
|
+
|
|
157
|
+
info " Downloading from ${url}"
|
|
158
|
+
echo ""
|
|
159
|
+
|
|
160
|
+
curl --fail --location --progress-bar --output "$tmpfile" "$url" ||
|
|
161
|
+
error "Download failed.
|
|
162
|
+
|
|
163
|
+
Possible causes:
|
|
164
|
+
- No internet connection
|
|
165
|
+
- The version does not exist: ${VERSION:-latest}
|
|
166
|
+
- GitHub is unreachable
|
|
167
|
+
|
|
168
|
+
URL: ${url}"
|
|
169
|
+
|
|
170
|
+
tar -xzf "$tmpfile" -C "$bin_dir" ||
|
|
171
|
+
error "Failed to extract archive. The download may be corrupted — try again."
|
|
172
|
+
|
|
173
|
+
chmod +x "$exe" || error "Failed to make binary executable"
|
|
174
|
+
|
|
175
|
+
# Strip macOS Gatekeeper quarantine flag (set automatically on curl downloads)
|
|
176
|
+
# Without this, macOS will block the binary: "cannot be opened because Apple
|
|
177
|
+
# cannot check it for malicious software"
|
|
178
|
+
if [[ $(uname -s) == "Darwin" ]]; then
|
|
179
|
+
xattr -d com.apple.quarantine "$exe" 2>/dev/null || true
|
|
180
|
+
fi
|
|
181
|
+
|
|
182
|
+
# ─── Verify installation ────────────────────────────────────────────────────
|
|
183
|
+
|
|
184
|
+
installed_version=$("$exe" --version 2>/dev/null || echo "unknown")
|
|
185
|
+
|
|
186
|
+
echo ""
|
|
187
|
+
success " Resend CLI ${installed_version} installed successfully!"
|
|
188
|
+
echo ""
|
|
189
|
+
info " Binary: $(tildify "$exe")"
|
|
190
|
+
|
|
191
|
+
# ─── PATH setup ─────────────────────────────────────────────────────────────
|
|
192
|
+
|
|
193
|
+
# Check if already on PATH
|
|
194
|
+
if command -v resend >/dev/null 2>&1; then
|
|
195
|
+
existing=$(command -v resend)
|
|
196
|
+
if [[ "$existing" == "$exe" ]]; then
|
|
197
|
+
echo ""
|
|
198
|
+
bold " Run ${Blue}resend --help${Color_Off}${Bold} to get started${Color_Off}"
|
|
199
|
+
echo ""
|
|
200
|
+
exit 0
|
|
201
|
+
else
|
|
202
|
+
warn "another 'resend' was found at ${existing}"
|
|
203
|
+
info " The new installation at $(tildify "$exe") may be shadowed."
|
|
204
|
+
fi
|
|
205
|
+
fi
|
|
206
|
+
|
|
207
|
+
# Check if bin_dir is already in PATH
|
|
208
|
+
if echo "$PATH" | tr ':' '\n' | grep -qxF "${bin_dir}" 2>/dev/null; then
|
|
209
|
+
echo ""
|
|
210
|
+
bold " Run ${Blue}resend --help${Color_Off}${Bold} to get started${Color_Off}"
|
|
211
|
+
echo ""
|
|
212
|
+
exit 0
|
|
213
|
+
fi
|
|
214
|
+
|
|
215
|
+
# Determine shell config file
|
|
216
|
+
shell_name=$(basename "${SHELL:-}")
|
|
217
|
+
config=""
|
|
218
|
+
shell_line=""
|
|
219
|
+
|
|
220
|
+
case $shell_name in
|
|
221
|
+
zsh)
|
|
222
|
+
config="${ZDOTDIR:-$HOME}/.zshrc"
|
|
223
|
+
shell_line="export PATH=\"$(tildify "$bin_dir"):\$PATH\""
|
|
224
|
+
;;
|
|
225
|
+
bash)
|
|
226
|
+
# macOS bash opens login shells — .bash_profile is loaded, not .bashrc.
|
|
227
|
+
# Linux bash opens non-login interactive shells — .bashrc is preferred.
|
|
228
|
+
if [[ $(uname -s) == "Darwin" ]]; then
|
|
229
|
+
if [[ -f "$HOME/.bash_profile" ]]; then
|
|
230
|
+
config="$HOME/.bash_profile"
|
|
231
|
+
elif [[ -f "$HOME/.bashrc" ]]; then
|
|
232
|
+
config="$HOME/.bashrc"
|
|
233
|
+
else
|
|
234
|
+
config="$HOME/.bash_profile"
|
|
235
|
+
fi
|
|
236
|
+
else
|
|
237
|
+
if [[ -f "$HOME/.bashrc" ]]; then
|
|
238
|
+
config="$HOME/.bashrc"
|
|
239
|
+
elif [[ -f "$HOME/.bash_profile" ]]; then
|
|
240
|
+
config="$HOME/.bash_profile"
|
|
241
|
+
else
|
|
242
|
+
config="$HOME/.bashrc"
|
|
243
|
+
fi
|
|
244
|
+
fi
|
|
245
|
+
shell_line="export PATH=\"$(tildify "$bin_dir"):\$PATH\""
|
|
246
|
+
;;
|
|
247
|
+
fish)
|
|
248
|
+
config="${XDG_CONFIG_HOME:-$HOME/.config}/fish/conf.d/resend.fish"
|
|
249
|
+
mkdir -p "$(dirname "$config")"
|
|
250
|
+
shell_line="fish_add_path $(tildify "$bin_dir")"
|
|
251
|
+
;;
|
|
252
|
+
esac
|
|
253
|
+
|
|
254
|
+
if [[ -n $config ]]; then
|
|
255
|
+
# Check if PATH entry already exists (check both tildified and absolute)
|
|
256
|
+
if [[ -f "$config" ]] && (grep -qF "$(tildify "$bin_dir")" "$config" 2>/dev/null || grep -qF "$bin_dir" "$config" 2>/dev/null); then
|
|
257
|
+
info " PATH already configured in $(tildify "$config")"
|
|
258
|
+
elif [[ -w "${config%/*}" ]] || [[ -w "$config" ]]; then
|
|
259
|
+
{
|
|
260
|
+
echo ""
|
|
261
|
+
echo "# Resend CLI"
|
|
262
|
+
echo "$shell_line"
|
|
263
|
+
} >> "$config"
|
|
264
|
+
info " Added $(tildify "$bin_dir") to \$PATH in $(tildify "$config")"
|
|
265
|
+
echo ""
|
|
266
|
+
info " To start using Resend CLI, run:"
|
|
267
|
+
echo ""
|
|
268
|
+
bold " source $(tildify "$config")"
|
|
269
|
+
bold " resend --help"
|
|
270
|
+
else
|
|
271
|
+
echo ""
|
|
272
|
+
info " Manually add to your shell config:"
|
|
273
|
+
echo ""
|
|
274
|
+
bold " ${shell_line}"
|
|
275
|
+
fi
|
|
276
|
+
else
|
|
277
|
+
echo ""
|
|
278
|
+
info " Add to your shell config:"
|
|
279
|
+
echo ""
|
|
280
|
+
bold " export PATH=\"$(tildify "$bin_dir"):\$PATH\""
|
|
281
|
+
fi
|
|
282
|
+
|
|
283
|
+
echo ""
|
|
284
|
+
info " Next steps:"
|
|
285
|
+
echo ""
|
|
286
|
+
bold " export RESEND_API_KEY=re_..."
|
|
287
|
+
bold " resend --help"
|
|
288
|
+
echo ""
|
|
289
|
+
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
# Run the installer — this line MUST be the last line in the file.
|
|
293
|
+
# If the download is interrupted, bash will not execute an incomplete function.
|
|
294
|
+
main "$@"
|
package/package.json
CHANGED
|
@@ -1,22 +1,43 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "resend-cli",
|
|
3
|
-
"version": "1.0
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"type": "module",
|
|
19
|
-
"
|
|
20
|
-
"src"
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "resend-cli",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Resend CLI — email for developers",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/resend/resend-cli"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/resend/resend-cli#readme",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"cli",
|
|
13
|
+
"resend",
|
|
14
|
+
"email",
|
|
15
|
+
"api"
|
|
16
|
+
],
|
|
17
|
+
"packageManager": "bun@1.3.10",
|
|
18
|
+
"type": "module",
|
|
19
|
+
"bin": {
|
|
20
|
+
"resend": "./src/cli.ts"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"dev": "bun run src/cli.ts",
|
|
24
|
+
"dev:watch": "bun --watch src/cli.ts",
|
|
25
|
+
"build": "bun build --compile --minify --sourcemap --bytecode src/cli.ts --outfile dist/resend",
|
|
26
|
+
"lint": "biome check",
|
|
27
|
+
"format": "biome format --write",
|
|
28
|
+
"typecheck": "tsc --noEmit",
|
|
29
|
+
"test": "bun test tests/commands tests/lib"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"commander": "14.0.3",
|
|
33
|
+
"@commander-js/extra-typings": "14.0.0",
|
|
34
|
+
"resend": "6.9.3",
|
|
35
|
+
"@clack/prompts": "1.1.0",
|
|
36
|
+
"unicode-animations": "1.0.3"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@biomejs/biome": "2.4.6",
|
|
40
|
+
"@types/bun": "1.3.10",
|
|
41
|
+
"typescript": "5.9.3"
|
|
42
|
+
}
|
|
43
|
+
}
|