Skip to the documentation
CLI

Every command

All 376, one row each, with the endpoint each resource command calls.

Every command

There are 376 commands, each on its own row in the order nextmail --help lists them. 47 are written by hand for people: they ask for what is missing, format what they print and combine several API calls where that helps, so their row names no single endpoint. The other 329 are the resource commands, nextmail <namespace> <verb> across 36 namespaces, and each one calls the endpoint its row names.

The resource commands are not written one by one. The CLI reads the SDK's method manifest, which describes every method with its parameters, endpoint and scopes, and turns each method into a verb named after the namespace and the method in kebab case, so domains.createAddress is nextmail domains create-address. A list and the listAll and iterate that walk it become one list verb with --all and --max, which is why there are fewer commands than SDK methods.

The package's parity check proves it before every release. For every SDK method it builds the command line three ways, with the required values only, with them in a --data file, and with every flag set, runs the command against a recording fetch, and fails when a method has no command or when a command sends anything other than the method, path, query, body and credential the manifest names. It then runs the same command lines through the real parser and dispatcher, and fails on any request that differs from the direct call.

Each row shows the first usage line of its command. nextmail <command> --help shows the rest: every argument and flag with what it takes, and examples, and for a resource command its scopes, its endpoint, what it returns and the notes from the API reference. Add --json for the same page as one JSON document, and nextmail --help --json prints every command, argument and flag at once. Every command also takes the global flags, --json, --yes, --dry-run, --profile, --api-key, --base-url, --no-input, --no-color and --debug, so no row repeats them.

CommandCallsScope
nextmail login-none
nextmail signup --email <address> [--name <name>] [--agent <who>]-none
nextmail whoami-none
nextmail status-none
nextmail send --to <address> --subject <text> --text <body> [flags]-emails:send
nextmail inbox [folder] [flags]-threads:read
nextmail read <thread-id> [flags]-threads:read
nextmail search <query...> [flags]-threads:read
nextmail reply <thread-id> --text <body> [flags]-threads:read + emails:send
nextmail archive <thread-id...>-threads:write
nextmail unarchive <thread-id...>-threads:write
nextmail trash <thread-id...>-threads:write
nextmail star <thread-id...>-threads:write
nextmail unstar <thread-id...>-threads:write
nextmail mark read <thread-id...>-threads:write
nextmail mark unread <thread-id...>-threads:write
nextmail snooze <thread-id...> --until <when>-threads:write
nextmail unsnooze <thread-id...>-threads:write
nextmail label add <thread-id...> --label <label-id>-threads:write
nextmail label remove <thread-id...> --label <label-id>-threads:write
nextmail temp new [--name <local-part>] [--domain <domain>] [--ttl <minutes>]-none
nextmail temp list-none
nextmail temp read [inbox] [message-id] [flags]-none
nextmail temp watch [inbox] [--first]-none
nextmail temp delete [inbox] [--yes]-none
nextmail ai translate --to <language> [--text <text>|--html <html>|--body-file <path>] [--subject <subject>]-emails:send
nextmail ai languages [--search <text>]-none
nextmail ai compose "<prompt>" [--to <address>] [--subject <subject>] [--thread <thread-id>] [--tone <tone>]-drafts:write
nextmail ai summarize <thread-id>-threads:read
nextmail mcp config [--client <client>]-none
nextmail mcp tools [tool]-none
nextmail mcp call <tool> [--args <json|@file|->] [--arg key=value ...]-none
nextmail mcp serve-none
nextmail docs ask "<question>"-none
nextmail docs open [slug] [--print]-none
nextmail docs read [slug]-none
nextmail agents-none
nextmail me get [flags]GET /keys/selfnone
nextmail me ping [flags]GET /pingnone
nextmail me rotate [flags]POST /keys/self/rotatekeys:write
nextmail me list-requests [flags]GET /keys/self/requestsnone
nextmail me list-activity [flags]GET /keys/self/activitynone
nextmail me stats [flags]GET /keys/self/statsnone
nextmail security list-events [flags]GET /security/eventsmembers:read
nextmail security get-policy [flags]GET /security/policynone
nextmail security update-policy --require-two-factor [flags]PATCH /security/policymembers:write
nextmail keys list [flags]GET /keyskeys:read
nextmail keys get <id> [flags]GET /keys/{id}keys:read
nextmail keys create --name <value> [flags]POST /keyskeys:manage
nextmail keys update <id> [flags]PATCH /keys/{id}keys:manage
nextmail keys delete <id> [flags]DELETE /keys/{id}keys:manage
nextmail keys rotate <id> [flags]POST /keys/{id}/rotatekeys:manage
nextmail keys revoke <id> [flags]POST /keys/{id}/revokekeys:manage
nextmail keys list-requests <id> [flags]GET /keys/{id}/requestskeys:read
nextmail keys list-activity <id> [flags]GET /keys/{id}/activitykeys:read
nextmail keys list-workspace-requests [flags]GET /keys/requestskeys:read
nextmail keys list-workspace-activity [flags]GET /keys/activitykeys:read
nextmail keys stats [flags]GET /keys/statskeys:read + emails:read
nextmail addresses list [flags]GET /addressesemails:read
nextmail languages list [flags]GET /languagesnone
nextmail live-events stream [flags]GET /live-eventsthreads:read
nextmail emails send --from <value> --to <a,b> [flags]POST /emailsemails:send
nextmail emails send-raw --raw <path|-> [flags]POST /emails/rawemails:send
nextmail emails send-batch <emails> [flags]POST /emails/batchemails:send
nextmail emails translate --to <value> [flags]POST /emails/translateemails:send
nextmail emails check [flags]POST /emails/checkemails:send
nextmail emails scan [flags]POST /emails/scanthreads:read
nextmail emails list [flags]GET /emailsemails:read
nextmail emails get <id> [flags]GET /emails/{id}emails:read
nextmail emails list-events <id> [flags]GET /emails/{id}/eventsemails:read
nextmail emails list-events-by-message-id <message-id> [flags]GET /emails/eventsemails:read
nextmail emails get-tracking <id> [flags]GET /emails/{id}/trackingemails:read
nextmail emails cancel <id> [flags]POST /emails/{id}/cancelemails:send
nextmail emails reschedule <id> <scheduled-at> [flags]PATCH /emails/{id}emails:send
nextmail emails update <id> [flags]PATCH /emails/{id}emails:send
nextmail emails compose --prompt <value> [flags]POST /emails/composeemails:send
nextmail emails rewrite --text <value> --action <value> [flags]POST /emails/rewriteemails:send
nextmail emails suggest-subject --message <value> [flags]POST /emails/subjectemails:send
nextmail tracking list [flags]GET /trackingemails:read
nextmail tracking get-stats [flags]GET /tracking/statsemails:read
nextmail tracking get <id> [flags]GET /tracking/{id}emails:read
nextmail tracking list-opens <id> [flags]GET /tracking/{id}/opensemails:read
nextmail tracking list-clicks <id> [flags]GET /tracking/{id}/clicksemails:read
nextmail threads list [flags]GET /threadsthreads:read
nextmail threads get <id> [flags]GET /threads/{id}threads:read
nextmail threads update <id> [flags]PATCH /threads/{id}threads:write
nextmail threads trash <id> [flags]POST /threads/{id}/trashthreads:write
nextmail threads snooze <id> <wake-at> [flags]POST /threads/{id}/snoozethreads:write
nextmail threads unsnooze <id> [flags]POST /threads/{id}/unsnoozethreads:write
nextmail threads mute <id> [flags]POST /threads/{id}/mutethreads:write
nextmail threads unmute <id> [flags]POST /threads/{id}/unmutethreads:write
nextmail threads list-messages <id> [flags]GET /threads/{id}/messagesthreads:read
nextmail threads get-message <id> <message-id> [flags]GET /threads/{id}/messages/{messageId}threads:read
nextmail threads get-raw-message <id> <message-id> [flags]GET /threads/{id}/messages/{messageId}/rawthreads:read
nextmail threads list-attachments <id> <message-id> [flags]GET /threads/{id}/messages/{messageId}/attachmentsthreads:read
nextmail threads list-file-links <id> <message-id> [flags]GET /threads/{id}/messages/{messageId}/file-linksfiles:read
nextmail threads list-tracking <id> [flags]GET /threads/{id}/trackingemails:read
nextmail threads get-delivery <id> [flags]GET /threads/{id}/deliveryemails:read
nextmail threads list-automations <id> [flags]GET /threads/{id}/automationsthreads:read + automations:read
nextmail threads list-notes <id> [flags]GET /threads/{id}/notesthreads:read
nextmail threads create-note <id> --content <value> [flags]POST /threads/{id}/notesthreads:write
nextmail threads update-note <id> <note-id> [flags]PATCH /threads/{id}/notes/{noteId}threads:write
nextmail threads delete-note <id> <note-id> [flags]DELETE /threads/{id}/notes/{noteId}threads:write
nextmail threads reorder-notes <id> <ids...> [flags]POST /threads/{id}/notes/reorderthreads:write
nextmail threads counts [flags]GET /threads/countsthreads:read
nextmail threads summary <id> [flags]GET /threads/{id}/summarythreads:read
nextmail threads reply-suggestions <id> [flags]GET /threads/{id}/reply-suggestionsthreads:read
nextmail threads restore <id> [flags]POST /threads/{id}/restorethreads:write
nextmail threads delete <id> [flags]DELETE /threads/{id}threads:write
nextmail threads unsubscribe <id> [flags]POST /threads/{id}/unsubscribethreads:write
nextmail threads get-event <id> [flags]GET /threads/{id}/eventcalendar:read
nextmail threads list-sender-categories [flags]GET /sender-categoriesthreads:read
nextmail threads set-sender-category <email> <category> [flags]PUT /sender-categories/{email}threads:write
nextmail threads clear-sender-category <email> [flags]DELETE /sender-categories/{email}threads:write
nextmail threads get-team <id> [flags]GET /threads/{id}/teamthreads:read
nextmail threads assign <id> <assignee-id> [flags]PUT /threads/{id}/assigneethreads:write
nextmail threads unassign <id> [flags]DELETE /threads/{id}/assigneethreads:write
nextmail threads set-replying <id> [flags]PUT /threads/{id}/replyingthreads:write
nextmail threads clear-replying <id> [flags]DELETE /threads/{id}/replyingthreads:write
nextmail threads mark-done <id> [flags]POST /threads/{id}/donethreads:write
nextmail threads reopen <id> [flags]POST /threads/{id}/reopenthreads:write
nextmail threads list-comments <id> [flags]GET /threads/{id}/commentsthreads:read
nextmail threads create-comment <id> --body <value> [flags]POST /threads/{id}/commentsthreads:write
nextmail threads update-comment <id> <comment-id> --body <value> [flags]PATCH /threads/{id}/comments/{commentId}threads:write
nextmail threads delete-comment <id> <comment-id> [flags]DELETE /threads/{id}/comments/{commentId}threads:write
nextmail threads wait-for-email [flags]GET /threads/waitthreads:read
nextmail events send --name <value> [flags]POST /eventscontacts:write
nextmail events send-batch <events> [flags]POST /events/batchcontacts:write
nextmail events list-names [flags]GET /events/namesautomations:read
nextmail domains list [flags]GET /domainsdomains:read
nextmail domains get <id> [flags]GET /domains/{id}domains:read
nextmail domains create --domain <value> [flags]POST /domainsdomains:write
nextmail domains verify <id> [flags]POST /domains/{id}/verifydomains:write
nextmail domains update <id> [flags]PATCH /domains/{id}domains:write
nextmail domains delete <id> [flags]DELETE /domains/{id}domains:write
nextmail domains get-logo <id> [flags]GET /domains/{id}/logodomains:read
nextmail domains set-logo <id> --svg <value> [flags]PUT /domains/{id}/logodomains:write
nextmail domains remove-logo <id> [flags]DELETE /domains/{id}/logodomains:write
nextmail domains set-logo-certificate <id> --certificate <value> [flags]PUT /domains/{id}/logo/certificatedomains:write
nextmail domains remove-logo-certificate <id> [flags]DELETE /domains/{id}/logo/certificatedomains:write
nextmail domains list-addresses <id> [flags]GET /domains/{id}/addressesdomains:read
nextmail domains create-address <id> --local-part <value> [flags]POST /domains/{id}/addressesdomains:write
nextmail domains get-address <id> <address-id> [flags]GET /domains/{id}/addresses/{addressId}domains:read
nextmail domains update-address <id> <address-id> [flags]PATCH /domains/{id}/addresses/{addressId}domains:write
nextmail domains set-address-photo <id> <address-id> <data> [flags]PUT /domains/{id}/addresses/{addressId}/photodomains:write
nextmail domains remove-address-photo <id> <address-id> [flags]DELETE /domains/{id}/addresses/{addressId}/photodomains:write
nextmail domains start-gravatar-publish <id> <address-id> [flags]POST /domains/{id}/addresses/{addressId}/photo/gravatardomains:write
nextmail domains delete-address <id> <address-id> [flags]DELETE /domains/{id}/addresses/{addressId}domains:write
nextmail domains list-address-forwards <id> <address-id> [flags]GET /domains/{id}/addresses/{addressId}/forwardsdomains:read
nextmail domains add-address-forwards <id> <address-id> --emails <a,b> [flags]POST /domains/{id}/addresses/{addressId}/forwardsdomains:write
nextmail domains update-address-forward <id> <address-id> <forward-id> --enabled [flags]PATCH /domains/{id}/addresses/{addressId}/forwards/{forwardId}domains:write
nextmail domains delete-address-forward <id> <address-id> <forward-id> [flags]DELETE /domains/{id}/addresses/{addressId}/forwards/{forwardId}domains:write
nextmail domains resend-address-forward-consent <id> <address-id> <forward-id> [flags]POST /domains/{id}/addresses/{addressId}/forwards/{forwardId}/resenddomains:write
nextmail domains list-address-members <id> <address-id> [flags]GET /domains/{id}/addresses/{addressId}/membersmembers:read
nextmail domains get-address-login <id> <address-id> [flags]GET /domains/{id}/addresses/{addressId}/loginmembers:write
nextmail domains set-address-login <id> <address-id> --password <value> [flags]PUT /domains/{id}/addresses/{addressId}/loginmembers:write
nextmail domains delete-address-login <id> <address-id> [flags]DELETE /domains/{id}/addresses/{addressId}/loginmembers:write
nextmail domains get-mail-app-settings <id> <address-id> [flags]GET /domains/{id}/addresses/{addressId}/mail-appsthreads:read
nextmail domains update-mail-app-settings <id> <address-id> [flags]PATCH /domains/{id}/addresses/{addressId}/mail-appsthreads:read + domains:write
nextmail domains get-address-limits <id> <address-id> [flags]GET /domains/{id}/addresses/{addressId}/limitsdomains:read
nextmail domains update-address-limits <id> <address-id> [flags]PATCH /domains/{id}/addresses/{addressId}/limitsdomains:write
nextmail domains list-app-passwords <id> <address-id> [flags]GET /domains/{id}/addresses/{addressId}/app-passwordsthreads:read
nextmail domains create-app-password <id> <address-id> --name <value> [flags]POST /domains/{id}/addresses/{addressId}/app-passwordsmembers:write
nextmail domains update-app-password <id> <address-id> <password-id> --name <value> [flags]PATCH /domains/{id}/addresses/{addressId}/app-passwords/{passwordId}members:write
nextmail domains delete-app-password <id> <address-id> <password-id> [flags]DELETE /domains/{id}/addresses/{addressId}/app-passwords/{passwordId}members:write
nextmail domains send-mail-app-setup <id> <address-id> --recipient <value> [flags]POST /domains/{id}/addresses/{addressId}/mail-app-setupmembers:write
nextmail domains create-mail-app-profile-link <id> <address-id> --name <value> --display-name <value> --description <value> [flags]POST /domains/{id}/addresses/{addressId}/mail-app-profile-linkmembers:write
nextmail domains get-dns <id> [flags]GET /domains/{id}/dnsdomains:read
nextmail domains set-dns-zone <id> --connection-id <value> --zone-id <value> [flags]PUT /domains/{id}/dnsdomains:write
nextmail domains sync-dns <id> [flags]POST /domains/{id}/dns/syncdomains:write
nextmail domains list-routes <id> [flags]GET /domains/{id}/routesdomains:read
nextmail domains create-route <id> --pattern <value> --action <value> [flags]POST /domains/{id}/routesdomains:write
nextmail domains get-route <id> <route-id> [flags]GET /domains/{id}/routes/{routeId}domains:read
nextmail domains update-route <id> <route-id> [flags]PATCH /domains/{id}/routes/{routeId}domains:write
nextmail domains delete-route <id> <route-id> [flags]DELETE /domains/{id}/routes/{routeId}domains:write
nextmail domains test-route <id> --address <value> [flags]POST /domains/{id}/routes/testdomains:read
nextmail domains list-group-members <id> <address-id> [flags]GET /domains/{id}/addresses/{addressId}/group-membersdomains:read
nextmail domains add-group-members <id> <address-id> --members <json|@file|-> [flags]POST /domains/{id}/addresses/{addressId}/group-membersdomains:write
nextmail domains remove-group-member <id> <address-id> <member-id> [flags]DELETE /domains/{id}/addresses/{addressId}/group-members/{memberId}domains:write
nextmail app-host get [flags]GET /app-hostdomains:read
nextmail app-host set --host <value> [flags]PUT /app-hostdomains:write
nextmail app-host verify [flags]POST /app-host/verifydomains:write
nextmail app-host delete [flags]DELETE /app-hostdomains:write
nextmail branding get [flags]GET /brandingsettings:read
nextmail branding update [flags]PATCH /brandingsettings:write
nextmail branding upload-image <variant> <data> [flags]PUT /branding/images/{variant}settings:write
nextmail branding remove-image <variant> [flags]DELETE /branding/images/{variant}settings:write
nextmail webhooks list [flags]GET /webhookswebhooks:read
nextmail webhooks get <id> [flags]GET /webhooks/{id}webhooks:read
nextmail webhooks create --url <value> [flags]POST /webhookswebhooks:write
nextmail webhooks update <id> [flags]PATCH /webhooks/{id}webhooks:write
nextmail webhooks delete <id> [flags]DELETE /webhooks/{id}webhooks:write
nextmail webhooks rotate-secret <id> [flags]POST /webhooks/{id}/rotate-secretwebhooks:write
nextmail webhooks test <id> [flags]POST /webhooks/{id}/testwebhooks:write
nextmail webhooks list-deliveries <id> [flags]GET /webhooks/{id}/deliverieswebhooks:read
nextmail webhooks get-delivery <id> <delivery-id> [flags]GET /webhooks/{id}/deliveries/{deliveryId}webhooks:read
nextmail webhooks replay-delivery <id> <delivery-id> [flags]POST /webhooks/{id}/deliveries/{deliveryId}/replaywebhooks:write
nextmail webhooks list-dead-letters <id> [flags]GET /webhooks/{id}/dead-letterswebhooks:read
nextmail webhooks replay-dead-letters <id> [flags]POST /webhooks/{id}/dead-letters/replaywebhooks:write
nextmail webhooks discard-dead-letter <id> <dead-letter-id> [flags]DELETE /webhooks/{id}/dead-letters/{deadLetterId}webhooks:write
nextmail webhooks list-workspace-deliveries [flags]GET /webhooks/deliverieswebhooks:read
nextmail webhooks list-activity <id> [flags]GET /webhooks/{id}/activitywebhooks:read
nextmail webhooks list-workspace-activity [flags]GET /webhooks/activitywebhooks:read
nextmail webhooks list-events [flags]GET /webhooks/eventswebhooks:read
nextmail webhooks stats [flags]GET /webhooks/statswebhooks:read
nextmail imports list [flags]GET /importsthreads:read
nextmail imports get <id> [flags]GET /imports/{id}threads:read
nextmail imports create --address-id <value> --files <json|@file|-> [flags]POST /importsthreads:write
nextmail imports upload-state <id> [flags]GET /imports/{id}/uploadthreads:write
nextmail imports upload-chunk <id> <file> <chunk> <data> [flags]PUT /imports/{id}/files/{file}/chunks/{chunk}threads:write
nextmail imports start <id> [flags]POST /imports/{id}/startthreads:write
nextmail imports cancel <id> [flags]POST /imports/{id}/cancelthreads:write
nextmail imports list-failures <id> [flags]GET /imports/{id}/failuresthreads:read
nextmail imports delete-upload <id> [flags]DELETE /imports/{id}/uploadthreads:write
nextmail imports import-files --address-id <value> --files <path> [flags]POST /importsthreads:write
nextmail imports discover-mailbox <email> [flags]GET /imports/mailbox-settingsthreads:write
nextmail imports check-mailbox --email <value> --password <value> [flags]POST /imports/mailbox/checkthreads:write
nextmail imports connect-mailbox --address-id <value> --email <value> --password <value> [flags]POST /imports/mailboxthreads:write
nextmail imports resume <id> [flags]POST /imports/{id}/resumethreads:write
nextmail settings get [flags]GET /settingssettings:read
nextmail settings update [flags]PATCH /settingssettings:write
nextmail roles list [flags]GET /rolesroles:read
nextmail roles get <id> [flags]GET /roles/{id}roles:read
nextmail roles create --name <value> --permissions <a,b> [flags]POST /rolesroles:write
nextmail roles update <id> [flags]PATCH /roles/{id}roles:write
nextmail roles delete <id> [flags]DELETE /roles/{id}roles:write
nextmail roles list-permissions [flags]GET /roles/permissionsroles:read
nextmail members list [flags]GET /membersmembers:read
nextmail members get <user-id> [flags]GET /members/{userId}members:read
nextmail members add --email <value> --role-id <value> [flags]POST /membersmembers:write
nextmail members update <user-id> --role-id <value> [flags]PATCH /members/{userId}members:write
nextmail members remove <user-id> [flags]DELETE /members/{userId}members:write
nextmail members grant-address <user-id> --address-id <value> [flags]POST /members/{userId}/addressesmembers:write
nextmail members revoke-address <user-id> <address-id> [flags]DELETE /members/{userId}/addresses/{addressId}members:write
nextmail members grant-domain <user-id> --domain-id <value> [flags]POST /members/{userId}/domainsmembers:write
nextmail members revoke-domain <user-id> <domain-id> [flags]DELETE /members/{userId}/domains/{domainId}members:write
nextmail members list-invitations [flags]GET /members/invitationsmembers:read
nextmail members revoke-invitation <invitation-id> [flags]DELETE /members/invitations/{invitationId}members:write
nextmail members resend-invitation <invitation-id> [flags]POST /members/invitations/{invitationId}/resendmembers:write
nextmail members get-directory-sync [flags]GET /directory-syncmembers:read
nextmail members connect-directory-sync [flags]POST /directory-syncmembers:write
nextmail members disconnect-directory-sync [flags]DELETE /directory-syncmembers:write
nextmail members list-directory-people [flags]GET /directory-sync/peoplemembers:read
nextmail members set-directory-default-role <role-id> [flags]PUT /directory-sync/default-rolemembers:write
nextmail members set-directory-group-role <group-id> <role-id> [flags]PUT /directory-sync/groups/{groupId}/rolemembers:write
nextmail suppressions list [flags]GET /suppressionssettings:read
nextmail suppressions get <id> [flags]GET /suppressions/{id}settings:read
nextmail suppressions add --email <value> [flags]POST /suppressionssettings:write
nextmail suppressions remove <id> [flags]DELETE /suppressions/{id}settings:write
nextmail suppressions list-unsubscribes [flags]GET /suppressions/unsubscribessettings:read
nextmail suppressions add-unsubscribe --email <value> [flags]POST /suppressions/unsubscribessettings:write
nextmail suppressions remove-unsubscribe <email> [flags]DELETE /suppressions/unsubscribes/{email}settings:write
nextmail traffic list [flags]GET /trafficemails:read
nextmail sending list-streams [flags]GET /sending/streamsemails:read
nextmail sending resume-stream <stream> [flags]POST /sending/streams/{stream}/resumedomains:write
nextmail sending list-dedicated-ips [flags]GET /sending/dedicated-ipsdomains:read
nextmail sending get-dedicated-ip <ip> [flags]GET /sending/dedicated-ips/{ip}domains:read
nextmail files list [flags]GET /filesfiles:read
nextmail files get <id> [flags]GET /files/{id}files:read
nextmail files stats [flags]GET /files/statsfiles:read
nextmail files download <id> [flags]GET /files/{id}/contentfiles:read
nextmail files list-links <id> [flags]GET /files/{id}/linksfiles:read
nextmail files create-link <id> [flags]POST /files/{id}/linksfiles:write
nextmail files revoke-link <id> <link-id> [flags]DELETE /files/{id}/links/{linkId}files:write
nextmail files revoke-all-links <id> [flags]DELETE /files/{id}/linksfiles:write
nextmail files upload <data> [flags]POST /filesfiles:write
nextmail files delete <id> [flags]DELETE /files/{id}files:write
nextmail files delete-many <ids...> [flags]POST /files/batch-deletefiles:write
nextmail temp-mail list-domains [flags]GET /temp-mail/domainsnone
nextmail temp-mail create [flags]POST /temp-mail/inboxesnone
nextmail temp-mail get <inbox-id> [flags]GET /temp-mail/inboxes/{id}inbox token
nextmail temp-mail extend <inbox-id> [flags]POST /temp-mail/inboxes/{id}/extendinbox token
nextmail temp-mail delete <inbox-id> [flags]DELETE /temp-mail/inboxes/{id}inbox token
nextmail temp-mail list-messages <inbox-id> [flags]GET /temp-mail/inboxes/{id}/messagesinbox token
nextmail temp-mail get-message <inbox-id> <message-id> [flags]GET /temp-mail/inboxes/{id}/messages/{messageId}inbox token
nextmail temp-mail delete-message <inbox-id> <message-id> [flags]DELETE /temp-mail/inboxes/{id}/messages/{messageId}inbox token
nextmail temp-mail list-attachments <inbox-id> <message-id> [flags]GET /temp-mail/inboxes/{id}/messages/{messageId}/attachmentsinbox token
nextmail signups create --email <value> [flags]POST /signupsnone
nextmail signups verify <sign-up-id> <code> [flags]POST /signups/{id}/verifynone
nextmail tools check-dmarc <domain> [flags]GET /tools/dmarcnone
nextmail tools check-bimi <domain> [flags]GET /tools/biminone
nextmail tools check-deliverability <domain> [flags]GET /tools/deliverabilitynone
nextmail tools check-spf <domain> [flags]GET /tools/spfnone
nextmail tools check-dkim <domain> [flags]GET /tools/dkimnone
nextmail tools check-mx <domain> [flags]GET /tools/mxnone
nextmail tools read-verification-code [flags]POST /tools/verification-codenone
nextmail tools estimate-cost [flags]GET /tools/costnone
nextmail tools check-address <email> [flags]GET /tools/addressnone
nextmail tools check-addresses --emails <a,b> [flags]POST /tools/addressesnone
nextmail support send --topic <value> --message <value> [flags]POST /supportnone
nextmail limits get [flags]GET /limitssettings:read
nextmail encryption list-keys [flags]GET /encryption/keysemails:read
nextmail encryption publish-key --address <value> --public-key <value> --fingerprint <value> [flags]POST /encryption/keysemails:read
nextmail encryption lookup-keys --addresses <a,b> [flags]GET /encryption/keys/lookupemails:send
nextmail senders get <email> [flags]GET /senders/{email}threads:read
nextmail senders get-avatar <email> [flags]GET /senders/{email}/avatarthreads:read
nextmail senders research <email> [flags]POST /senders/{email}/researchthreads:read
nextmail analytics mailbox [flags]GET /analytics/mailboxthreads:read
nextmail analytics sending [flags]GET /analytics/sendingemails:read
nextmail exports preview [flags]GET /exports/previewthreads:read + emails:read + drafts:read + files:read + labels:read + contacts:read + audiences:read + calendar:read + templates:read + rules:read
nextmail exports list [flags]GET /exportsthreads:read + emails:read + drafts:read + files:read + labels:read + contacts:read + audiences:read + calendar:read + templates:read + rules:read
nextmail exports get <id> [flags]GET /exports/{id}threads:read + emails:read + drafts:read + files:read + labels:read + contacts:read + audiences:read + calendar:read + templates:read + rules:read
nextmail exports start [flags]POST /exportsthreads:read + emails:read + drafts:read + files:read + labels:read + contacts:read + audiences:read + calendar:read + templates:read + rules:read
nextmail exports download <id> [flags]GET /exports/{id}/contentthreads:read + emails:read + drafts:read + files:read + labels:read + contacts:read + audiences:read + calendar:read + templates:read + rules:read
nextmail dns-connections list [flags]GET /dns-connectionsdomains:read
nextmail dns-connections start [flags]POST /dns-connectionsdomains:write
nextmail dns-connections get <id> [flags]GET /dns-connections/{id}domains:read
nextmail dns-connections delete <id> [flags]DELETE /dns-connections/{id}domains:write
nextmail billing get [flags]GET /billingbilling:read
nextmail billing list-plans [flags]GET /billing/plansbilling:read
nextmail billing get-usage [flags]GET /billing/usagebilling:read
nextmail billing list-alerts [flags]GET /billing/alertsbilling:read
nextmail billing list-countries [flags]GET /billing/countriesbilling:read
nextmail billing get-pay-as-you-go [flags]GET /billing/pay-as-you-gobilling:read
nextmail billing set-pay-as-you-go --enabled [flags]PATCH /billing/pay-as-you-gobilling:write
nextmail billing set-pay-as-you-go-limit --limit-cents <n> [flags]PUT /billing/pay-as-you-go/limitbilling:write
nextmail billing confirm-pay-as-you-go [flags]POST /billing/pay-as-you-go/confirmbilling:write
nextmail billing start-checkout --plan <value> [flags]POST /billing/checkoutbilling:write
nextmail billing open-portal [flags]POST /billing/portalbilling:write
nextmail billing list-invoices [flags]GET /billing/invoicesbilling:read
nextmail billing get-invoice <order-id> [flags]GET /billing/invoices/{orderId}billing:read
nextmail billing save-invoice-details <order-id> --name <value> --line1 <value> --city <value> --country <value> [flags]PUT /billing/invoices/{orderId}/detailsbilling:write
nextmail billing list-add-ons [flags]GET /billing/add-onsbilling:read
nextmail billing start-add-on-checkout --add-on <value> [flags]POST /billing/add-ons/checkoutbilling:write
nextmail billing cancel-add-on <add-on> [flags]DELETE /billing/add-ons/{addOn}billing:write
nextmail workspaces list [flags]GET /workspacesaccount:read
nextmail workspaces create --name <value> [flags]POST /workspacesaccount:write
nextmail workspaces get-active [flags]GET /workspaces/activeaccount:read
nextmail workspaces set-active <workspace-id> [flags]PUT /workspaces/activeaccount:write
nextmail workspaces delete <id> --confirm <value> [flags]DELETE /workspaces/{id}account:write
nextmail workspaces get-ownership-offer <id> [flags]GET /workspaces/{id}/ownership-offeraccount:read
nextmail workspaces offer-ownership <id> <user-id> [flags]POST /workspaces/{id}/ownership-offeraccount:write
nextmail workspaces withdraw-ownership-offer <id> [flags]DELETE /workspaces/{id}/ownership-offeraccount:write
nextmail account set-name <name> [flags]PATCH /accountaccount:write
nextmail account get-notifications [flags]GET /account/notificationsaccount:read
nextmail account set-email-notification <category> --enabled [flags]PUT /account/notifications/email/{category}account:write
nextmail account set-photo <data> [flags]PUT /account/photoaccount:write
nextmail account remove-photo [flags]DELETE /account/photoaccount:write
nextmail account get-username [flags]GET /account/usernameaccount:read
nextmail account check-username <username> [flags]GET /account/username/availabilityaccount:read
nextmail account set-username <username> [flags]PUT /account/usernameaccount:write
nextmail account list-connected-apps [flags]GET /account/connected-appsaccount:read
nextmail account list-connected-app-requests <client-id> [flags]GET /account/connected-apps/{clientId}/requestsaccount:read
nextmail account revoke-connected-app <client-id> [flags]DELETE /account/connected-apps/{clientId}account:write
nextmail account end-connected-app-elevation <client-id> [flags]DELETE /account/connected-apps/{clientId}/elevationaccount:write
nextmail account list-sessions [flags]GET /account/sessionsaccount:read
nextmail account revoke-session <session-id> [flags]DELETE /account/sessions/{sessionId}account:write
nextmail account revoke-sessions [flags]DELETE /account/sessionsaccount:write
nextmail account list-security-events [flags]GET /account/security-eventsaccount:read
nextmail account list-passkeys [flags]GET /account/passkeysaccount:read
nextmail account rename-passkey <passkey-id> <name> [flags]PATCH /account/passkeys/{passkeyId}account:write
nextmail account remove-passkey <passkey-id> [flags]DELETE /account/passkeys/{passkeyId}account:write
nextmail account list-sign-in-methods [flags]GET /account/sign-in-methodsaccount:read
nextmail account connect-sign-in-method <provider> [flags]POST /account/sign-in-methods/{provider}/connectaccount:write
nextmail account disconnect-sign-in-method <provider> [flags]DELETE /account/sign-in-methods/{provider}account:write
nextmail account list-invitations [flags]GET /account/invitationsaccount:read
nextmail account accept-invitation <invitation-id> [flags]POST /account/invitations/{invitationId}/acceptaccount:write
nextmail account decline-invitation <invitation-id> [flags]POST /account/invitations/{invitationId}/declineaccount:write
nextmail account list-ownership-offers [flags]GET /account/ownership-offersaccount:read
nextmail account accept-ownership-offer <workspace-id> [flags]POST /account/ownership-offers/{workspaceId}/acceptaccount:write
nextmail account decline-ownership-offer <workspace-id> [flags]POST /account/ownership-offers/{workspaceId}/declineaccount:write
nextmail notifications list [flags]GET /notificationsaccount:read
nextmail notifications unread-count [flags]GET /notifications/unread-countaccount:read
nextmail notifications mark-read <ids...> [flags]POST /notifications/readaccount:write
nextmail notifications mark-all-read [flags]POST /notifications/read-allaccount:write
nextmail notifications clear [flags]POST /notifications/clearaccount:write
nextmail verify-none
nextmail logout-none
nextmail profile list-none
nextmail profile use <name>-none
nextmail profile remove <name>-none
nextmail profile current-none
nextmail open [page] [--print]-none
nextmail update-none
nextmail completion <bash|zsh|fish>-none
nextmail api <method> <path> [--data <json|@file|->] [--query <key=value>] [--header <key=value>]-none

Scope names what every run of the command needs. With a saved sign-in the CLI checks it before the command does anything, and a missing scope stops it with exit code 4. api and mcp call name none, because what they need depends on the endpoint or the tool you call, and the server checks that. The temp-mail rows that say "inbox token" send the nm_inbox_ token that temp-mail create or temp-mail extend returned, which the CLI saves, and --inbox-token passes one it did not create.

6 commands need a browser sign-in, the kind nextmail login saves when you choose the browser: ai compose, ai summarize, mcp tools, mcp call, mcp serve and verify. The AI and MCP ones run on the MCP server, which accepts no API key, and verify enters the verification codes that only a browser sign-in is asked for.

20 hand-written commands need no sign-in at all: login, signup, temp new, temp list, temp read, temp watch, temp delete, mcp config, docs ask, docs open, docs read, agents, logout, profile list, profile use, profile remove, profile current, open, update and completion. Neither do the temp-mail rows. ai languages works signed in or not.

60 commands are destructive, such as deleting, revoking, rotating, cancelling or emptying, so they ask you to confirm first and stop with exit code 2 when nobody can answer. --yes confirms for you, and --dry-run runs the reads and prints the request that would change something instead of sending it.

nextmail --help leaves out a few commands, and so does this table. help is the long form of --help, version prints the CLI, SDK and runtime versions, and verify covers the security verbs.