Command line
Every SDK method is a command, with --json, --dry-run and exit codes.
Read the docs: Command line
The window below shows one session in a terminal. Open the mailbox tab, read a thread, star it or search, and each click comes back as a command.
Inbox
Everything addressed to you, minus spam.
9:41
Sarah Chen
9:12
Northwind Cloud
8:55
Omar Haddad
8:30
Mia Chen
8:02
Lumen
Yesterday
Leo Martin
Yesterday
Skyline Travel
Wed
Ken Ito
Tue
Priya Raman
Your session, in a terminal
$ nextmail inbox● 9:41 Sarah Chen Homepage copy, final round … t1● 9:12 Northwind Clo… Invoice 2214 for August (1) t2 8:55 Omar Haddad Can we move Thursday? (1) t3 8:30 Mia Chen Signed contract attached (1) t4 8:02 Lumen Your code is 481 207 (1) t5 Yest… Leo Martin Photos from Saturday (1) t6What your clicks call
Open a thread, star it, search or reply.
Every SDK method is a command. Add --json to read the result and --dry-run to see the request before anything is sent.
$ nextmail send --to [email protected] --subject "Hi" --text "Hello" --dry-run --json
{ "dryRun": true,
"request": {
"method": "POST",
"url": "https://api.nextmail.sh/emails",
"body": { "to": "[email protected]", "subject": "Hi", "text": "Hello" } } }
exit 0
Every SDK method is a command, with --json, --dry-run and exit codes.
Read the docs: Command lineEach command ends with a code, so a script can tell an auth problem from a network one.
Read the docs: Exit codes{ "id": "msg_4b7e05d3862c1f0a44b19e2c", "status": "sent"}Add --json to read the result in any script.
Read the docs: Machine-readable outputnextmail ├─ emails ├─ threads ├─ labels ├─ drafts ├─ contacts ├─ templates ├─ webhooks ├─ domains ├─ files └─ keys
The same groups as the SDK, such as emails, threads and domains.
Read the docs: Commands by namespacePipe --json into another tool, or fail a build on the exit code.
Read the docs: Scripts and CIInstall
npm install -g @nextmail/clinpm install -g @nextmail/cliOne command for each of the 793 SDK methods
A real inbox, made for you just now. Send it an email and watch it land here.
nextmail temp new.Open the full inboxREST, the SDK, the command line and MCP reach the same operations, with the same scopes and the same limits.

MCP, the API and the command line come with every plan, the free one included. Connect a client and approve exactly what it reaches.
Read https://nextmail.sh/agent.md and follow it. Then tell me what I need to do to sign you in to my Nextmail mailbox. If I have no account yet, create one with my address and ask me for the code that arrives. Wait for my go-ahead before you send anything.