# CLI reference

Every mailset command: its usage, flags, who can run it, and an example.

`mailset` runs everything the API does, from a terminal or an agent’s shell.

## Install

On macOS or Linux, from Homebrew or npm.

Homebrew:

```bash
brew install intenseloop/tap/mailset
```

npm:

```bash
npm install -g @mailset/cli
```

Then sign in. It prints a link to approve with your passkey.

```bash
mailset login
```

`mailset --help` lists every command, and `mailset <command> --help` shows one in full.

## Flags every command takes

- `--json`: Print the answer as JSON, in the shape the API reference gives for the same command.
- `--org <id>`: The org a command is about, when you are in more than one. `mailset orgs list` shows the ids.
- `--yes`: Don’t ask y/N before a command that shows its plan first. With no terminal, as in a script or an agent’s shell, nothing asks anyway.
- `--help`: One command’s bare word and flags, who can run it, and whether it asks for a passkey. On a group, its commands.
- `--version`: This CLI’s version.

## Product email

- [Messages](https://mailset.app/docs/cli/messages.md): Send email: whole messages from your product, or a person’s own.
- [Delivery](https://mailset.app/docs/cli/delivery.md): Find what became of a message, recipient by recipient.
- [Event hook](https://mailset.app/docs/cli/hooks.md): The webhook that hears what became of your product’s email.
- [Unsubscribes](https://mailset.app/docs/cli/unsubscribes.md): Who opted out of a mailbox’s or sending domain’s promotional email.
- [App keys](https://mailset.app/docs/cli/keys.md): The keys your product’s servers hold, and what each one may do.
- [Key status](https://mailset.app/docs/cli/grants.md): What the key making a call may do, and when it stops.
- [API tokens](https://mailset.app/docs/cli/tokens.md): A person’s own login for scripts.
- [Codes](https://mailset.app/docs/cli/codes.md): The newest one-time code an address received.

## Campaigns and inbound

- [Sending domains](https://mailset.app/docs/cli/sending.md): Sending-only subdomains, their suppressions, and your org’s limits.
- [Campaigns](https://mailset.app/docs/cli/campaigns.md): Bulk email from a sending domain, and its event hook.
- [Inbound routes](https://mailset.app/docs/cli/routes.md): Email to a subdomain, delivered to your webhook.

## Domains

- [Domains](https://mailset.app/docs/cli/domains.md): Add a domain, check its records, and set its policies.
- [DNS connection](https://mailset.app/docs/cli/dns.md): Let Mailset write the records in your own DNS account.
- [Postmaster](https://mailset.app/docs/cli/postmaster.md): How Gmail sees each of your domains.
- [Senders](https://mailset.app/docs/cli/senders.md): Photos for the addresses you send from, and who writes to you.

## Mailboxes

- [Mailboxes](https://mailset.app/docs/cli/mailboxes.md): Create mailboxes, and decide who holds each one.
- [Aliases](https://mailset.app/docs/cli/aliases.md): More addresses for one mailbox, catch-alls included.
- [Groups](https://mailset.app/docs/cli/groups.md): One address that reaches several mailboxes.
- [Delegates](https://mailset.app/docs/cli/delegates.md): Let a teammate read and send from your mailbox.
- [Forwarding](https://mailset.app/docs/cli/forwarding.md): Send a mailbox’s new email on to another address.
- [Vacation replies](https://mailset.app/docs/cli/vacation.md): The reply people get while you are away.
- [Imports](https://mailset.app/docs/cli/imports.md): Copy a mailbox’s email over from a Google account.
- [Mailbox pictures](https://mailset.app/docs/cli/avatars.md): The picture a mailbox shows inside Mailset.
- [Default address](https://mailset.app/docs/cli/addresses.md): The address your new email goes out from.

## Email

- [Conversations](https://mailset.app/docs/cli/threads.md): List, search, read and file conversations.
- [Drafts](https://mailset.app/docs/cli/drafts.md): Save a draft, attach files, and throw one away.
- [Attachments](https://mailset.app/docs/cli/attachments.md): Download a file from a message.
- [Labels](https://mailset.app/docs/cli/labels.md): Your own labels for conversations.
- [Rules](https://mailset.app/docs/cli/rules.md): File, label or forward new email as it arrives.
- [Tab rules](https://mailset.app/docs/cli/tabrules.md): Always file a sender or a domain in one inbox tab.
- [Blocked senders](https://mailset.app/docs/cli/blocks.md): Discard a sender’s new email before it is stored.
- [Notes](https://mailset.app/docs/cli/notes.md): A note in a shared conversation, for the team only.
- [Follow-ups](https://mailset.app/docs/cli/followups.md): Email you sent that still waits for an answer.
- [Contacts](https://mailset.app/docs/cli/contacts.md): Your address book: add, merge, import and export.
- [AI](https://mailset.app/docs/cli/ai.md): Summaries, drafts and sorting, and what runs them.

## Organization

- [Organizations](https://mailset.app/docs/cli/orgs.md): The orgs you are in, and an org’s name.
- [Members](https://mailset.app/docs/cli/members.md): Invite people, change roles, and remove someone.
- [Invites](https://mailset.app/docs/cli/invites.md): Invites nobody has accepted yet.
- [Policies](https://mailset.app/docs/cli/policies.md): The org’s rules on forwarding and sessions.
- [Billing](https://mailset.app/docs/cli/billing.md): The plan, this month’s use, and the prepaid balance.
- [Audit log](https://mailset.app/docs/cli/audit.md): What happened in an org, and who did it.
- [Paper key](https://mailset.app/docs/cli/paperkey.md): The org’s way back in when every passkey is lost.

## Your account

- [Sign in and help](https://mailset.app/docs/cli/start.md): Sign in, sign out, read a guide, send feedback.
- [Who am I](https://mailset.app/docs/cli/whoami.md): Who a credential signs in as.
- [Settings](https://mailset.app/docs/cli/settings.md): Your own preferences, on every device.
- [Devices](https://mailset.app/docs/cli/devices.md): Where you are signed in, and signing a device out.
- [Passkeys](https://mailset.app/docs/cli/passkeys.md): The passkeys that sign you in.
- [Notifications](https://mailset.app/docs/cli/push.md): The devices that get push notifications.
- [Activity](https://mailset.app/docs/cli/activity.md): What your account has done lately.
- [Storage](https://mailset.app/docs/cli/storage.md): How much email each of your mailboxes holds.
- [Exports](https://mailset.app/docs/cli/exports.md): A copy of your whole account, to download.
- [Account](https://mailset.app/docs/cli/account.md): Deactivate or delete your own account.
- [Agent skill](https://mailset.app/docs/cli/agents.md): Teach the agent apps on this machine how to use Mailset.

---

© 2026 Intenseloop, Inc. Mailset’s site, docs and guides are copyrighted. You may read them and use their code to build with Mailset. Don’t republish them or use them to build a copy of Mailset. Terms: https://mailset.app/terms#content