resend
Send and manage transactional emails from the terminal
Description
The official CLI for Resend — send emails, manage domains, API keys, audiences, and contacts directly from the terminal. Built for humans, AI agents, and CI/CD pipelines. Supports plain text, HTML, and file inputs with interactive and non-interactive modes. Features multi-profile support, environment diagnostics, and automatic JSON output in piped contexts.
Install
curl -fsSL https://resend.com/install.sh | bashbrew install resend/cli/resendnpm install -g resend-cliAI Summary
Official Resend CLI — send transactional emails, manage domains, API keys, audiences, and contacts from the terminal. Built for humans, AI agents, and CI/CD.
Capabilities
- + Send emails with plain text, HTML, or HTML file content
- + Manage domains, API keys, audiences, and contacts
- + Multi-profile support for switching accounts/teams
- + Environment diagnostics via doctor command
- + Automatic JSON output in piped/non-interactive contexts
- + CC, BCC, and reply-to support
- + AI agent detection and integration
Use When
- → You need to send transactional emails from the terminal or scripts
- → You want to manage Resend resources without the dashboard
- → You need email sending in CI/CD pipelines
Avoid When
- x You don't have a Resend account or API key
- x You need bulk marketing email campaigns
Usage Patterns
Send an email
resend emails send --from me@example.com --to user@example.com --subject 'Hello' --text 'Hi there' Send a plain text email
Send HTML email from file
resend emails send --from me@example.com --to user@example.com --subject 'Report' --html report.html Send an email with HTML content from a file
Run diagnostics
resend doctor Check CLI version, API key, domains, and agent integrations
Switch profile
resend auth switch Switch between saved account profiles
Input / Output
Typical Pipelines
resend emails send --from noreply@example.com --to admin@example.com --subject 'Deploy done' --text 'v1.2.3 deployed'