Resend CLI 2.0

Skills for AI agents, React Email support, Automations, and Webhook listening. All from the terminal.

The Resend CLI gives you access to the full Resend API without leaving your terminal.

Today, we're shipping version 2.0, including four new powerful features:

Get started

Install the CLI and log in to get started:

cURL

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

Node.js

npm install -g resend-cli

Homebrew (macOS / Linux)

brew install resend/cli/resend

Or download the .exe for Windows directly from the GitHub releases page.

Send emails using local React files

Since version 1.0, you could use local .html files to send emails from your local machine. Now, you can use local React Email files (.tsx or .jsx) to send emails as well.

Automations and events

You can now manage Automations directly from the CLI. Create events, trigger automation runs, and inspect results, all in one place.

resend automations list
resend event-schemas create

Build and debug multi-step workflows against your own data, without leaving your terminal.

Webhook listening

Setting up a local webhook listener used to require a tunneling tool and manual configuration. Now it's a single command.

resend webhooks listen

The CLI handles the tunnel and forwards incoming events to your local server. Every webhook event type is supported, making it straightforward to develop and test event-driven features locally.

Skills for AI agents

The CLI now ships with Agent Skills. Skills give your agents an opinionated, well-defined interface for interacting with the Resend API. Skills help your agents follow best practices, avoid unnecessary API calls, and stay on task.

With the CLI, an agent can have its own inbox. It can sign up for accounts, receive confirmation emails, process attachments, and respond to users without your manual intervention.

Other changes

We've also made a few other improvements to the CLI.

Now, you can programmatically retrieve and inspect logs from the command line so you can debug and monitor your email events without leaving your terminal. The CLI access also means your agent can help debug and fix issues without your intervention.

We've also improved the security of the CLI's key storage. Now, when you create a new API key, it's stored in your system's keychain:

  • macOS: Keychain
  • Linux: Secret Storage
  • Windows: Windows Credential Manager

Finally, we've deprecated the team command in favor of the new auth command.

Visit the CLI docs to explore all 50+ commands across the full Resend API.

Resend CLI 2.0 · Resend