resend-cli

Solid

Operate the Resend platform from the terminal — send emails (including React Email .tsx templates via --react-email), manage domains, contacts, broadcasts, templates, webhooks, API keys, and logs via the `resend` CLI. Use when the user wants to run Resend commands in the shell, scripts, or CI/CD pipelines, or send/preview React Email templates. Always load this skill before running `resend` commands — it contains the non-interactive flag contract and gotchas that prevent silent failures.

Web & Frontend 360 stars 33 forks Updated 2 months ago MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
85
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Resend CLI ## Installation Before running any `resend` commands, check whether the CLI is installed: ```bash resend --version ``` If the command is not found, install it using one of the methods below: **cURL (macOS / Linux):** ```bash curl -fsSL https://resend.com/install.sh | bash ``` **Homebrew (macOS / Linux):** ```bash brew install resend/cli/resend ``` **Node.js:** ```bash npm install -g resend-cli ``` **PowerShell (Windows):** ```powershell irm https://resend.com/install.ps1 | iex ``` After installing, verify: ```bash 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: ```json {"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 | Flag | Description | |------|-------------| | `--api-key <key>` | Override API key for this invocation | | `-p, --profile <name>` | Select stored profile | | `--json` | Fo...

Details

Author
resend
Repository
resend/resend-cli
Created
3 months ago
Last Updated
2 months ago
Language
TypeScript
License
MIT

Integrates with

Related Skills