resend-cli

Operate the Resend email platform from the terminal via the resend CLI.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/divinaarmuela/Content --skill resend-cli-divinaarmuela
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resend-cli
Source: https://github.com/divinaarmuela/Content/tree/main/.claude/skills/resend-cli
Command: npx skills add https://github.com/divinaarmuela/Content --skill resend-cli-divinaarmuela

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires resend-cli, and includes references (resource) components.

What problem does it solve? Running Resend API operations from shells, scripts, and CI/CD pipelines requires knowing exact non-interactive flag contracts, and mistakes like missing --yes on deletes or losing one-time webhook secrets cause silent failures. This Skill encodes the full command surface, agent protocol, and common pitfalls so AI agents and developers run resend commands correctly the first time. ## Core Features & Use Cases - Email sending and management: Send single or batch emails, including React Email .tsx templates via --react-email, with attachments, scheduling, and idempotency keys. - Platform resource management: Manage domains, contacts, segments, topics, broadcasts, templates, webhooks, automations, events, API keys, suppressions, and logs from the terminal. - Agent-safe operation: Enforces non-interactive rules (all required flags, --quiet, --yes on deletes, JSON on stdout, errors on stderr) plus credential-safety practices for RESEND_API_KEY. - Use Case: In a GitHub Actions workflow, inject RESEND_API_KEY from the secret store and run resend emails send -q --from [email protected] --to [email protected] --subject "Build complete" --text "..." to notify the team on every deploy. ## Quick Start Ask the agent to send a test email with the Resend CLI using your verified domain, for example: send an email from [email protected] to yourself with subject "Hello" and a short text body.

Frequently Asked Questions about resend-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send an email from the command line with Resend?

Run `resend emails send --from [email protected] --to [email protected] --subject "Hello" --text "Body"` with RESEND_API_KEY set in the environment. The sender address must be on a verified domain, and the command returns a JSON object with the email ID.

How do I send a React Email template with the Resend CLI?

Pass the .tsx file with `--react-email`, for example `resend emails send --from [email protected] --to [email protected] --subject "Welcome" --react-email ./emails/welcome.tsx`. The CLI bundles the template with esbuild, renders it to HTML, and sends it; you can add `--text` for a plain-text fallback.

Can I use the Resend CLI in CI/CD pipelines without interactive login?

Yes. Set RESEND_API_KEY from your CI secret store and the CLI authenticates non-interactively. Supply all required flags since the CLI never prompts in non-TTY mode, and add `-q` to suppress spinners so stdout carries clean JSON.

Why does my Resend CLI delete command fail in scripts?

All delete and rm subcommands require the `--yes` flag in non-interactive mode to prevent accidental deletion. Without it, the CLI exits with an error instead of prompting for confirmation.

Why did my URL attachment email never arrive with Resend?

The API fetches `--attachment "https://..."` URLs after returning the email ID, so an unreachable URL fails the email asynchronously. Verify with `emails get <id>` checking `last_event`, and always pass `;filename=` and `;type=` since neither is derived from the URL.

How do I get the webhook signing secret from the Resend CLI?

The `signing_secret` is returned only once in the output of `resend webhooks create`. Capture and store it immediately, because `webhooks get` does not return it later.