Mailofly CLI
The Mailofly CLI allows developers to send emails, manage sending domains, inspect delivery logs, and test webhooks directly from the terminal.Installation
Run Mailofly on-demand usingnpx or install it globally via npm:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Manage Mailofly domains, send test emails, and inspect logs directly from your command line.
npx or install it globally via npm:
npx mailofly --help
npm install -g mailofly
brew install mailofly/tap/mailofly
mailofly login
export MAILOFLY_API_KEY="mf_live_..."
mailofly send \
--to "user@example.com" \
--from "onboarding@yourcompany.com" \
--subject "Hello from Mailofly CLI" \
--text "This email was dispatched using the Mailofly command line interface."
# List all sending domains
mailofly domains list
# Verify DNS records for a specific domain
mailofly domains verify yourcompany.com
# View recent delivery events
mailofly logs --limit 10
# Filter by bounced or suppressed emails
mailofly logs --status bounced
mailofly listen --forward-to localhost:3000/api/webhooks/mailofly
| Flag | Short | Description |
|---|---|---|
--api-key | -k | Pass Mailofly API key inline |
--account-key | -a | Target specific sending account |
--json | -j | Format output as JSON for scripting |
--verbose | -v | Display raw HTTP request and response headers |
--help | -h | Display help and usage information |
Related topics
Unsubscribe Link