resend-cli
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, logs, automations, and events 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 sil
Security Assessment
Detected risks:
About resend-cli
The `resend-cli` skill provides comprehensive command-line access to the Resend platform, allowing users to manage email workflows and associated resources directly from their terminal. This skill addresses the need for automation and scripting in email operations, eliminating reliance on graphical interfaces and enabling seamless integration with CI/CD pipelines, shell scripts, and automated workflows. By loading this skill before executing `resend` commands, users gain access to non-interactive flags and safeguards that prevent silent failures, ensuring reliable and consistent behavior in both development and production environments.
With `resend-cli`, users can perform a wide array of tasks including sending emails, handling React Email `.tsx` templates, managing domains, contacts, broadcasts, templates, webhooks, API keys, logs, automations, and event workflows. The CLI automatically detects non-TTY environments and outputs structured JSON for integration with scripts or other automation tools. Key features include authentication via environment variables or profiles, suppression of interactive prompts in non-interactive environments, consistent JSON error and success outputs, and global flags for controlling verbosity, JSON output, and API key selection. The skill also supports confirmation requirements for deletion commands, further enhancing safety in automated operations.
This skill is ideal for developers, DevOps engineers, and technical users who need to automate or script email-related tasks on the Resend platform. Typical use cases include sending bulk or templated emails, integrating Resend operations into CI/CD pipelines, monitoring logs and events programmatically, managing multiple domains or API keys, and testing React Email templates before deployment. Its versatility and automation-friendly design make it particularly valuable for teams seeking to streamline email management, maintain consistency across environments, and reduce the risk of errors in production email workflows.
FAQ
How do I authenticate the Resend CLI?
You can authenticate using the `--api-key` flag, the `RESEND_API_KEY` environment variable, or a stored profile with `--profile` or `RESEND_PROFILE`. Interactive login is not recommended for non-TTY environments.
Which platforms are supported for installing resend-cli?
The CLI can be installed on macOS, Linux, and Windows. Installation options include cURL scripts, Homebrew (macOS/Linux), Node.js via npm, and PowerShell scripts for Windows.
Can I use resend-cli in automated scripts or CI/CD pipelines?
Yes, the CLI is designed for non-interactive environments, automatically outputs JSON, and supports flags like `--quiet` and `--yes` to facilitate scripting without prompts.
Do I need to manually specify JSON output?
No, the CLI auto-detects non-TTY environments and outputs JSON automatically. You can use `--json` to force JSON output in interactive environments.
Are there safety measures for destructive commands?
Yes, all `delete` or `rm` commands require the `--yes` flag in non-interactive mode to prevent accidental deletions.
All Files
16 filesInstall resend-cli
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
resend/resend-skills