NEW Browse AI tools across categories — updated daily. See what's new →

Resend Cli

Before running any resend commands, check whether the CLI is installed:

Authorresend
Version1.0.0
LicenseMIT
Token count~2,068
UpdatedJun 5, 2026

Install

Quick install

via npx skills · works with 57+ agents
npx skills add https://github.com/resend/resend-cli/tree/HEAD/skills/resend-cli
Or pick agent:
npx skills add resend/resend-cli --skill resend-cli --agent claude-code
npx skills add resend/resend-cli --skill resend-cli --agent cursor
npx skills add resend/resend-cli --skill resend-cli --agent codex
npx skills add resend/resend-cli --skill resend-cli --agent opencode
npx skills add resend/resend-cli --skill resend-cli --agent github-copilot
npx skills add resend/resend-cli --skill resend-cli --agent windsurf
More install options

Shorthand — useful for multi-skill repos:

npx skills add resend/resend-cli --skill resend-cli

Manual — clone the repo and drop the folder into your agent's skills directory:

git clone https://github.com/resend/resend-cli.git
cp -r resend-cli/skills/resend-cli ~/.claude/skills/
How to use: Once installed, ask your agent to "use the resend-cli skill" or describe what you want (e.g. "Before running any resend commands, check whether the CLI is installed:"). Requires Node.js 18+.

resend-cli

Before running any resend commands, check whether the CLI is installed:

resend-cliby resend

Before running any resend commands, check whether the CLI is installed:

npx skills add https://github.com/resend/resend-cli --skill resend-cliDownload ZIPGitHub

Resend CLI

Installation

Before running any resend commands, check whether the CLI is installed:

`resend --version
`

If the command is not found, install it using one of the methods below:

cURL (macOS / Linux):

`curl -fsSL https://resend.com/install.sh | bash
`

Homebrew (macOS / Linux):

`brew install resend/cli/resend
`

Node.js:

`npm install -g resend-cli
`

PowerShell (Windows):

`irm https://resend.com/install.ps1 | iex
`

After installing, verify:

`resend --version
`

Agent Protocol

The CLI auto-detects non-TTY environments and outputs JSON — no --json flag needed.

Rules for agents:

  • Supply ALL required flags. The CLI will NOT prompt when stdin is not a TTY.
  • Pass --quiet (or -q) to suppress spinners and status messages.
  • Exit 0 = success, 1 = error.
  • Error JSON goes to stderr, success JSON goes to stdout:
`{"error":{"message":"...","code":"..."}}
`
  • Use --api-key or RESEND_API_KEY env var. Never rely on interactive login.
  • All delete/rm commands require --yes in non-interactive mode.

Authentication

Auth resolves: --api-key flag > RESEND_API_KEY env > config file (resend login --key). Use --profile or RESEND_PROFILE for multi-profile.

Global Flags

FlagDescription--api-key <key>Override API key for this invocation-p, --profile <name>Select stored profile--jsonForce JSON output (auto in non-TTY)-q, --quietSuppress spinners/status (implies --json)

Available Commands

Command GroupWhat it doesemailssend, get, list, batch, cancel, updateemails receivinglist, get, attachments, forward, listendomainscreate, verify, update, delete, listlogslist, get, openapi-keyscreate, list, deleteautomationscreate, get, list, update, delete, stop, open, runseventscreate, get, list, update, delete, send, openbroadcastscreate, send, update, delete, listcontactscreate, update, delete, segments, topicscontact-propertiescreate, update, delete, listsegmentscreate, get, list, delete, contactstemplatescreate, publish, duplicate, delete, listtopicscreate, update, delete, listwebhookscreate, update, listen, delete, listauthlogin, logout, switch, rename, removewhoami / doctor / update / open / commandsUtility commands
Read the matching reference file for detailed flags and output shapes.

Dry-run: Only emails send and broadcasts create support --dry-run (payload validation before send/create). They print { "dryRun": true, "request": { ... } } on stdout without calling the API. There is no --dry-run on emails batch, broadcasts send, or other commands yet.

Common Mistakes

#MistakeFix1Forgetting --yes on delete commandsAll delete/rm subcommands require --yes in non-interactive mode — otherwise the CLI exits with an error2Not saving webhook signing_secretwebhooks create shows the secret once only — it cannot be retrieved later. Capture it from command output immediately3Omitting --quiet in CIWithout -q, spinners and status text still go to stderr (not stdout). Use -q for JSON on stdout with no spinner noise on stderr4Using --scheduled-at with batchBatch sending does not support scheduled_at — use single emails send instead5Expecting domains list to include DNS recordsList returns summaries only — use domains get <id> for the full records[] array6Sending a dashboard-created broadcast via CLIOnly API-created broadcasts can be sent with broadcasts send — dashboard broadcasts must be sent from the dashboard7Passing --events to webhooks update expecting additive behavior--events replaces the entire subscription list — always pass the complete set8Expecting logs list to include request/response bodiesList returns summary fields only — use logs get <id> for full request_body and response_body

Common Patterns

Send an email:

`resend emails send --from "[email&#160;protected]" --to [email&#160;protected] --subject "Hello" --text "Body"
`

Send a React Email template (.tsx):

`resend emails send --from "[email&#160;protected]" --to [email&#160;protected] --subject "Welcome" --react-email ./emails/welcome.tsx
`

Domain setup flow:

`resend domains create --name example.com --region us-east-1
# Configure DNS records from output, then:
resend domains verify <domain-id>
resend domains get <domain-id> # check status
`

Create and send a broadcast:

`resend broadcasts create --from "[email&#160;protected]" --subject "Update" --segment-id <id> --html "<h1>Hi</h1>" --send
`

CI/CD (no login needed):

`RESEND_API_KEY=re_xxx resend emails send --from ... --to ... --subject ... --text ...
`

Check environment health:

`resend doctor -q
`

When to Load References

  • Sending or reading emails → references/emails.md
  • Setting up or verifying a domain → references/domains.md
  • Managing API keys → references/api-keys.md
  • Creating or sending broadcasts → references/broadcasts.md
  • Managing contacts, segments, or topics → references/contacts.md, references/segments.md, references/topics.md
  • Defining contact properties → references/contact-properties.md
  • Working with templates → references/templates.md
  • Viewing API request logs → references/logs.md
  • Creating automations or sending events → references/automations.md
  • Setting up webhooks or listening for events → references/webhooks.md
  • Auth, profiles, or health checks → references/auth.md
  • Multi-step recipes (setup, CI/CD, broadcast workflow) → references/workflows.md
  • Command failed with an error → references/error-codes.md
  • Resend SDK integration (Node.js, Python, Go, etc.) → Install the resend skill
  • AI agent email inbox → Install the agent-email-inbox skill

More skills from resend

resend-inboundby resendresend-inbound — an installable skill for AI agents, published by resend/resend-skills.resend-design-skillsby resendUse when needing Resend design resources. Routes to brand guidelines, visual identity, UI components, design tokens, and marketing page patterns.email-best-practicesby resendComprehensive guidance for building deliverable, compliant, and user-friendly email systems. Covers authentication setup (SPF/DKIM/DMARC), spam troubleshooting, and deliverability best practices to prevent emails from landing in spam Includes templates and patterns for transactional emails (password resets, OTPs, confirmations) and marketing emails with proper consent workflows Provides compliance frameworks for CAN-SPAM, GDPR, and CASL regulations, plus double opt-in and suppression list...email-best-practicesby resendUse when building email features, emails going to spam, high bounce rates, setting up SPF/DKIM/DMARC authentication, implementing email capture, ensuring…react-emailby resendBuild and send HTML emails using React components with client-safe styling and preview testing. Component-based email development with TypeScript support, featuring core layout components (Html, Body, Container, Section, Row, Column) and content elements (Heading, Text, Button, Image, CodeBlock) Tailwind CSS styling via the Tailwind component with pixel-based preset; table-based layouts required for email client compatibility Local dev server preview at localhost:3000 with live editing;...agent-email-inboxby resendUse when building any system where email content triggers actions — AI agent inboxes, automated support handlers, email-to-task pipelines, or any workflow…email-best-practicesby resendUse when building email features, emails going to spam, high bounce rates, setting up SPF/DKIM/DMARC authentication, implementing email capture, ensuring…react-emailby resendUse when building HTML email templates with React components, adding a visual email editor to an application using the React Email visual editor, rendering…

---

Source: https://github.com/resend/resend-cli/tree/HEAD/skills/resend-cli
Author: resend
Discovered via: mcpservers.org

SKILL.md source

---
name: resend-cli
description: Before running any resend commands, check whether the CLI is installed:
---

# resend-cli

Before running any resend commands, check whether the CLI is installed:

# resend-cliby resend
Before running any resend commands, check whether the CLI is installed:

`npx skills add https://github.com/resend/resend-cli --skill resend-cli`Download ZIPGitHub

## Resend CLI

## Installation

Before running any `resend` commands, check whether the CLI is installed:

```
`resend --version
`
```

If the command is not found, install it using one of the methods below:

cURL (macOS / Linux):

```
`curl -fsSL https://resend.com/install.sh | bash
`
```

Homebrew (macOS / Linux):

```
`brew install resend/cli/resend
`
```

Node.js:

```
`npm install -g resend-cli
`
```

PowerShell (Windows):

```
`irm https://resend.com/install.ps1 | iex
`
```

After installing, verify:

```
`resend --version
`
```

## Agent Protocol

The CLI auto-detects non-TTY environments and outputs JSON — no `--json` flag needed.

Rules for agents:

* Supply ALL required flags. The CLI will NOT prompt when stdin is not a TTY.

* Pass `--quiet` (or `-q`) to suppress spinners and status messages.

* Exit `0` = success, `1` = error.

* Error JSON goes to stderr, success JSON goes to stdout:

```
`{"error":{"message":"...","code":"..."}}
`
```

* Use `--api-key` or `RESEND_API_KEY` env var. Never rely on interactive login.

* All `delete`/`rm` commands require `--yes` in non-interactive mode.

## Authentication

Auth resolves: `--api-key` flag > `RESEND_API_KEY` env > config file (`resend login --key`). Use `--profile` or `RESEND_PROFILE` for multi-profile.

## Global Flags

FlagDescription`--api-key <key>`Override API key for this invocation`-p, --profile <name>`Select stored profile`--json`Force JSON output (auto in non-TTY)`-q, --quiet`Suppress spinners/status (implies `--json`)

## Available Commands

Command GroupWhat it does`emails`send, get, list, batch, cancel, update`emails receiving`list, get, attachments, forward, listen`domains`create, verify, update, delete, list`logs`list, get, open`api-keys`create, list, delete`automations`create, get, list, update, delete, stop, open, runs`events`create, get, list, update, delete, send, open`broadcasts`create, send, update, delete, list`contacts`create, update, delete, segments, topics`contact-properties`create, update, delete, list`segments`create, get, list, delete, contacts`templates`create, publish, duplicate, delete, list`topics`create, update, delete, list`webhooks`create, update, listen, delete, list`auth`login, logout, switch, rename, remove`whoami` / `doctor` / `update` / `open` / `commands`Utility commands
Read the matching reference file for detailed flags and output shapes.

Dry-run: Only `emails send` and `broadcasts create` support `--dry-run` (payload validation before send/create). They print `{ "dryRun": true, "request": { ... } }` on stdout without calling the API. There is no `--dry-run` on `emails batch`, `broadcasts send`, or other commands yet.

## Common Mistakes

#MistakeFix1Forgetting `--yes` on delete commandsAll `delete`/`rm` subcommands require `--yes` in non-interactive mode — otherwise the CLI exits with an error2Not saving webhook `signing_secret``webhooks create` shows the secret once only — it cannot be retrieved later. Capture it from command output immediately3Omitting `--quiet` in CIWithout `-q`, spinners and status text still go to stderr (not stdout). Use `-q` for JSON on stdout with no spinner noise on stderr4Using `--scheduled-at` with batchBatch sending does not support `scheduled_at` — use single `emails send` instead5Expecting `domains list` to include DNS recordsList returns summaries only — use `domains get <id>` for the full `records[]` array6Sending a dashboard-created broadcast via CLIOnly API-created broadcasts can be sent with `broadcasts send` — dashboard broadcasts must be sent from the dashboard7Passing `--events` to `webhooks update` expecting additive behavior`--events` replaces the entire subscription list — always pass the complete set8Expecting `logs list` to include request/response bodiesList returns summary fields only — use `logs get <id>` for full `request_body` and `response_body`

## Common Patterns

Send an email:

```
`resend emails send --from "[email&#160;protected]" --to [email&#160;protected] --subject "Hello" --text "Body"
`
```

Send a React Email template (.tsx):

```
`resend emails send --from "[email&#160;protected]" --to [email&#160;protected] --subject "Welcome" --react-email ./emails/welcome.tsx
`
```

Domain setup flow:

```
`resend domains create --name example.com --region us-east-1
# Configure DNS records from output, then:
resend domains verify <domain-id>
resend domains get <domain-id> # check status
`
```

Create and send a broadcast:

```
`resend broadcasts create --from "[email&#160;protected]" --subject "Update" --segment-id <id> --html "<h1>Hi</h1>" --send
`
```

CI/CD (no login needed):

```
`RESEND_API_KEY=re_xxx resend emails send --from ... --to ... --subject ... --text ...
`
```

Check environment health:

```
`resend doctor -q
`
```

## When to Load References

* Sending or reading emails → references/emails.md

* Setting up or verifying a domain → references/domains.md

* Managing API keys → references/api-keys.md

* Creating or sending broadcasts → references/broadcasts.md

* Managing contacts, segments, or topics → references/contacts.md, references/segments.md, references/topics.md

* Defining contact properties → references/contact-properties.md

* Working with templates → references/templates.md

* Viewing API request logs → references/logs.md

* Creating automations or sending events → references/automations.md

* Setting up webhooks or listening for events → references/webhooks.md

* Auth, profiles, or health checks → references/auth.md

* Multi-step recipes (setup, CI/CD, broadcast workflow) → references/workflows.md

* Command failed with an error → references/error-codes.md

* Resend SDK integration (Node.js, Python, Go, etc.) → Install the `resend` skill

* AI agent email inbox → Install the `agent-email-inbox` skill

## More skills from resend
resend-inboundby resendresend-inbound — an installable skill for AI agents, published by resend/resend-skills.resend-design-skillsby resendUse when needing Resend design resources. Routes to brand guidelines, visual identity, UI components, design tokens, and marketing page patterns.email-best-practicesby resendComprehensive guidance for building deliverable, compliant, and user-friendly email systems. Covers authentication setup (SPF/DKIM/DMARC), spam troubleshooting, and deliverability best practices to prevent emails from landing in spam Includes templates and patterns for transactional emails (password resets, OTPs, confirmations) and marketing emails with proper consent workflows Provides compliance frameworks for CAN-SPAM, GDPR, and CASL regulations, plus double opt-in and suppression list...email-best-practicesby resendUse when building email features, emails going to spam, high bounce rates, setting up SPF/DKIM/DMARC authentication, implementing email capture, ensuring…react-emailby resendBuild and send HTML emails using React components with client-safe styling and preview testing. Component-based email development with TypeScript support, featuring core layout components (Html, Body, Container, Section, Row, Column) and content elements (Heading, Text, Button, Image, CodeBlock) Tailwind CSS styling via the Tailwind component with pixel-based preset; table-based layouts required for email client compatibility Local dev server preview at localhost:3000 with live editing;...agent-email-inboxby resendUse when building any system where email content triggers actions — AI agent inboxes, automated support handlers, email-to-task pipelines, or any workflow…email-best-practicesby resendUse when building email features, emails going to spam, high bounce rates, setting up SPF/DKIM/DMARC authentication, implementing email capture, ensuring…react-emailby resendUse when building HTML email templates with React components, adding a visual email editor to an application using the React Email visual editor, rendering…

---

**Source**: https://github.com/resend/resend-cli/tree/HEAD/skills/resend-cli
**Author**: resend
**Discovered via**: mcpservers.org

Related skills 6

caveman

★ Featured

Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

juliusbrussee 167k
Development

secure-linux-web-hosting

★ Featured

Use when setting up, hardening, or reviewing a cloud server for self-hosting, including DNS, SSH, firewalls, Nginx, static-site hosting, reverse-proxying an app, HTTPS with Let's Encrypt or ACME clients, safe HTTP-to-HTTPS redirects, or optional post-launch network tuning such as BBR.

xixu-me 155k
Development

readme-i18n

★ Featured

Use when the user wants to translate a repository README, make a repo multilingual, localize docs, add a language switcher, internationalize the README, or update localized README variants in a GitHub-style repository.

xixu-me 155k
Development

lark-shared

★ Featured

Use when first setting up lark-cli, running auth login, switching user/bot identity (--as), handling permission denied or scope errors, needing to update lark-cli, or seeing _notice in JSON output.

larksuite 155k
Development

improve-codebase-architecture

★ Featured

Find deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in docs/adr/. Use when the user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable.

mattpocock 151k
Development

paper-context-resolver

★ Featured

Optional RigorPilot helper for README-first deep learning repo reproduction. Use only when the README and repository files leave a narrow reproduction-critical gap and the task is to resolve a specific paper detail such as dataset split, preprocessing, evaluation protocol, checkpoint mapping, or runtime assumption from primary paper sources while recording conflicts. Do not use for general paper summary, repo scanning, environment setup, command execution, title-only paper lookup, or replacin...

lllllllama 127k
Development