@drin00/cli is the drin command line — full parity with the dashboard. Send mail, manage domains, inboxes, contacts, templates and webhooks, read delivery metrics, and launch the MCP server for AI agents, all from your terminal. Zero third-party dependencies; Node 20+.
Install
Install it globally for adrin command, or run it ad hoc with npx — no install required:
Install
Authenticate
The CLI authenticates with a single API key. Set it once in your environment — create one in the dashboard under Settings → API Keys. If the key is account-wide rather than scoped to one project, also setDRIN_SENDER to a project externalId.
Environment
--api-key, --sender, and --base-url, which override the environment:
Per-command flags
Send mail
Thesend command takes a verified --from address, one or more --to recipients, and a body (--text, --html, or a --template-id). It also accepts --data, --header, --tag, --attach, and --cc / --bcc.
drin send
Read mail & logs
Theemails group lists and inspects messages in either direction. Pass --direction inbound to see received mail, and body / attachments to pull the full content.
Activity
Domains
drin domains
Inbound & conversations
Create an inbox on a receiving domain, read its threads, reply in-thread, and simulate inbound mail to test the pipeline without DNS:Inbox loop
Everything else
Contacts, suppressions, templates, webhooks, API keys, metrics, and the cross-product account feed are all here too:Account surface
JSON output
Add--json to any command to print the raw API response instead of a formatted table — exactly what a tool-using agent or a CI script wants:
--json
Command reference
| Group | Subcommands |
|---|---|
send | — (supports --data, --header, --tag, --attach, --template-id) |
emails | list, get, body, attachments, reply, batch |
domains | list, get, add, verify, delete, receiving |
inboxes | list, create, get, delete |
threads | list, get |
contacts | list, create, get, update, unsubscribe, resubscribe, delete |
suppressions | list, add, remove |
templates | list, get, create, update, delete, render, preview, gallery |
webhooks | list, get, create, update, delete |
apikeys | list, create, revoke |
inbound | simulate |
integrations | list, get, install, update, uninstall |
account | messages (tenant-wide, every product) |
metrics | — |
mcp | runs @drin00/mcp over stdio with your resolved env |
Launch the MCP server
The CLI bundles the MCP server.drin mcp launches @drin00/mcp over stdio using the same resolved environment — point an AI client at it and your agent gets all 54 tools:
drin mcp
Give an agent the tools
The MCP server exposes the whole API as 54 tools — one command, one key.
