Every click in the app
is a command you can run.

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.

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)      t6

What your clicks call

The command line,
a building block for email.

Every SDK method is a command. Add --json to read the result and --dry-run to see the request before anything is sent.

Command line

Every SDK method is a command, with --json, --dry-run and exit codes.

Read the docs: Command line
  • 0 ok
  • 3 auth
  • 4 permission
  • 7 validation
  • 8 rate_limited
  • 9 network

Exit codes

Each command ends with a code, so a script can tell an auth problem from a network one.

Read the docs: Exit codes
nextmail
├─ emails
├─ threads
├─ labels
├─ drafts
├─ contacts
├─ templates
├─ webhooks
├─ domains
├─ files
└─ keys

Commands by namespace

The same groups as the SDK, such as emails, threads and domains.

Read the docs: Commands by namespace

Install

Install it once.
Or run it with npx.

npm install -g @nextmail/cli

One command for each of the 793 SDK methods

One call makes an inbox.
The next one reads it.

A disposable inbox made for this visit. Mail sent to it shows up here as it arrives.
Preparing your address

A real inbox, made for you just now. Send it an email and watch it land here.

  1. POST/temp-mail/inboxes
  2. GET/temp-mail/inboxes/{id}/messages
Agents make their own with nextmail temp new.Open the full inbox

Four doors.
One mailbox behind them.

REST, the SDK, the command line and MCP reach the same operations, with the same scopes and the same limits.

Give it an address.
Watch it work.

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.

© 2026 Nextmail. All rights reserved.