Resend CLI Quickstart
Use this when you need to send emails, manage domains, API keys, or audience contacts.
Commands
resend <resource> <action>— Execute resend commandsresend cli setup— Install resend-cli dependency globallyresend auth whoami— Display the current authenticated user/identityresend auth logout— Log out and clear local credentialsresend cli doctor— Run environment diagnostics for Resendresend emails send— Send an email via the Resend APIresend domains list— List all domains in your accountresend domains create— Create a new domain for sending/receivingresend domains get— Retrieve details for a specific domainresend domains delete— Delete an existing domainresend domains verify— Verify an existing domainresend api-keys list— List all API keys in your accountresend api-keys create— Create a new API keyresend api-keys delete— Delete an existing API keyresend webhooks list— List all webhooks in your accountresend webhooks create— Create a new webhookresend webhooks delete— Delete an existing webhookresend contacts list— List contacts in an audienceresend contacts create— Create a new contactresend contacts delete— Delete an existing contactresend _ _— Passthrough command for any other Resend CLI command
1) Install the plugin
supercli plugins install ./plugins/resend --json
2) Setup the dependency
The plugin requires the official resend-cli installed globally via npm.
supercli resend cli setup
3) Authenticate
You can provide the API key in three ways (ordered by priority):
A. Environment Variable (Recommended for Agents/CI)
export RESEND_API_KEY=re_xxx
B. Command Flag
supercli resend emails send --api-key re_xxx ...
C. Persistent Login
supercli resend login --key re_xxx
4) Core Operations
Emails
supercli resend emails send \
--from "you@yourdomain.com" \
--to "recipient@example.com" \
--subject "Hello" \
--text "Body text" \
--json
Domains
supercli resend domains list --json
supercli resend domains create --name "example.com" --json
supercli resend domains verify --id "dom_123" --json
API Keys
supercli resend api-keys list --json
supercli resend api-keys create --name "Production Key" --permission full_access --json
Audience Contacts
supercli resend contacts list --audience-id "aud_123" --json
supercli resend contacts create --audience-id "aud_123" --email "user@example.com" --json
5) Diagnostics
supercli resend auth whoami --json
supercli resend cli doctor --json