Install
Until the package is on the public npm registry, install from GitHub:Authenticate
Create a project key in Settings → API Keys, then export it in the process that launches the CLI:--api-key, which may remain in shell history or process listings.
doctor checks local configuration and public discovery without API credits. auth check calls the Sold API and consumes one read credit.
Command structure
Commands followmermail <resource> <action> [flags]:
--mailbox-id accepts the mailbox public_id (UUID), hosted alias id, or current email. Prefer public_id from mermail mailboxes list.
mermail --help, mermail <resource> --help, or mermail <resource> <action> --help for the exact flags.
Send email
Complex request bodies
Common fields have typed flags. Nested or complete bodies can use JSON, a file, or stdin:--data and --data-file cannot be used together.
Output formats
JSON is the stable default. Data is written to stdout; diagnostics and errors are written to stderr.Destructive actions
Delete, remove, bulk-delete, and empty-trash commands prompt in an interactive terminal. Non-interactive automation must pass--yes:
MCP checks
Verify that the hosted MCP server initializes and exposes exactly 63 tools:Exit codes
Common API statuses remain available in JSON errors:
402 credits exhausted, 403 workspace/plan denial, and 429 RPM exceeded.
Related
Skills
Give coding agents the dedicated
mermail-cli workflow.MCP
Use direct Streamable HTTP tool calling.
Authentication
Create and protect project API keys.
API Reference
Review request and response schemas.