Skip to main content
The official Mermail CLI exposes all 62 Sold API business operations with deterministic output for humans, scripts, CI jobs, and coding agents.

Install

Until the package is on the public npm registry, install from GitHub:
Or run a command without a global installation:
Node.js 22 or newer is required.

Authenticate

Create a project key in Settings → API Keys, then export it in the process that launches the CLI:
The CLI does not store credentials and does not collect telemetry. Prefer the environment variable over --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 follow mermail <resource> <action> [flags]: --mailbox-id accepts the mailbox public_id (UUID), hosted alias id, or current email. Prefer public_id from mermail mailboxes list.
Run 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:
Typed flags override the same fields supplied in JSON. --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:
Verify exact resource IDs before adding --yes. The CLI never retries write, send, or delete operations automatically. Idempotency-Key protects credit accounting but does not guarantee that every business operation is executed only once.

MCP checks

Verify that the hosted MCP server initializes and exposes exactly 63 tools:
For controlled staging tests only:

Exit codes

Common API statuses remain available in JSON errors: 402 credits exhausted, 403 workspace/plan denial, and 429 RPM exceeded.

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.