unosend
v1.0.3
Published
Unosend CLI - Send emails from your terminal
Maintainers
Readme
Unosend CLI
Send emails from your terminal with the Unosend CLI.
╦ ╦╔╗╔╔═╗╔═╗╔═╗╔╗╔╔╦╗
║ ║║║║║ ║╚═╗║╣ ║║║ ║║
╚═╝╝╚╝╚═╝╚═╝╚═╝╝╚╝═╩╝
One API. Infinite Emails.Installation
npm install -g unosendQuick Start
# Initialize with your API key
unosend init
# Send an email
unosend send -t [email protected] -s "Hello!" --text "Hi there"
# View your domains
unosend domains list
# Check email logs
unosend logsCommands
unosend init
Set up your API key. Get yours at https://www.unosend.co/api-keys
unosend send
Send an email.
# Basic email
unosend send -t [email protected] -s "Subject" --text "Body"
# HTML email
unosend send -t [email protected] -s "Subject" --html "<h1>Hello</h1>"
# From file
unosend send -t [email protected] -s "Newsletter" --file ./email.html
# With CC and BCC
unosend send -t [email protected] -s "Subject" --text "Body" --cc "[email protected]" --bcc "[email protected]"Options:
-t, --to <email>- Recipient email (required)-s, --subject <subject>- Subject line (required)-f, --from <email>- Sender email--html <html>- HTML content--text <text>- Plain text content--file <path>- Read HTML from file--reply-to <email>- Reply-to address--cc <emails>- CC recipients (comma-separated)--bcc <emails>- BCC recipients (comma-separated)
unosend domains
Manage your sending domains.
# List domains
unosend domains list
# Add a domain
unosend domains add example.com
# Verify domain DNS
unosend domains verify example.com
# Show domain details
unosend domains show example.com
# Remove a domain
unosend domains remove example.comunosend logs
View email sending logs.
# Recent logs
unosend logs
# More logs
unosend logs --limit 50
# Filter by status
unosend logs --status failedunosend config
Manage configuration.
# View config
unosend config --list
# Update API key
unosend config --set apiKey=un_xxxxxunosend whoami
Check your current authentication status.
License
MIT
