commands.sh

resend

all

Send and manage emails from the command-line.

More info →

Options (1)

boolean

List verified domains

Example: resend domains {{[ls|list]}}

Examples (8)

Log in to Resend (opens browser for authentication)

Log in with an API key directly (for CI/agents)

resend login --key re_xxxxxxxxx

Send an email

resend emails send --from [email protected] --to [email protected] --subject "subject" --text "message"

Create a template

resend templates create --name "Welcome" --subject "subject" --html "<h1>Hello</h1>"

Send an email using a template

resend emails send --to [email protected] --template template_id

List verified domains

resend domains [ls|list]

Show current authentication status

Check CLI version, API key, and domain status

resend doctor
made by @shridhargupta | data from tldr-pages