---
title: "CLI command reference"
description: "Every command of the doorman command line, grouped as the API reference groups its operations, with its arguments, its flags and the operation it sends."
url: https://doorman.fyi/docs/cli/commands
markdown: https://doorman.fyi/docs/cli/commands.md
area: "SDKs and tools"
section: "Command line"
---

# CLI command reference

Every command of the doorman command line, grouped as the API reference groups its operations, with its arguments, its flags and the operation it sends.

Source: https://doorman.fyi/docs/cli/commands

## How to read it

This is every command of `doorman`, the program of `@doorman/inbox-cli`: 92 commands that each send one operation of the API, and the few that manage the sign-in, on [a page of their own](https://doorman.fyi/docs/cli/commands/session.md). [The CLI](https://doorman.fyi/docs/cli.md) is the guide; this is the list.

The commands are derived from the API's contract when this documentation is built, as the program derives them. Each command names the operation it sends and links to its entry in the [API reference](https://doorman.fyi/docs/reference.md), where the answer and the errors are.

- A command is the operation's id, its dots as spaces and its capitals as hyphens: `inboxes.webhook.rotateSecret` is `doorman inboxes webhook rotate-secret`.
- A path parameter is an argument, in the order the path has them.
- Every other input is a flag in kebab-case: `displayName` is `--display-name`. An object or a list is given as JSON in one quoted word.
- `--json` with an object gives the whole request body at once.
- `doorman <command> --help` prints the same usage and flags.

> Note: The command line is not on a registry yet. [Installation and signing in](https://doorman.fyi/docs/cli.md#install-auth) has how to build it from the repository today.

## System

Liveness and this document. No credential.

| Command | What it does |
| --- | --- |
| [`doorman health`](https://doorman.fyi/docs/cli/commands/system.md#health) | Health check |
| [`doorman openapi`](https://doorman.fyi/docs/cli/commands/system.md#openapi) | The OpenAPI document |

## Account

The account, its plan and usage, and account-wide counts.

| Command | What it does |
| --- | --- |
| [`doorman me`](https://doorman.fyi/docs/cli/commands/account.md#me) | Who am I |
| [`doorman overview`](https://doorman.fyi/docs/cli/commands/account.md#overview) | Overview |
| [`doorman metrics`](https://doorman.fyi/docs/cli/commands/account.md#metrics) | Metrics |

## Inboxes

Addresses on the inbox domain: issue, read, rename and delete them.

| Command | What it does |
| --- | --- |
| [`doorman inboxes list`](https://doorman.fyi/docs/cli/commands/inboxes.md#inboxes-list) | List inboxes |
| [`doorman inboxes create`](https://doorman.fyi/docs/cli/commands/inboxes.md#inboxes-create) | Issue an inbox |
| [`doorman inboxes get`](https://doorman.fyi/docs/cli/commands/inboxes.md#inboxes-get) | Read an inbox |
| [`doorman inboxes update`](https://doorman.fyi/docs/cli/commands/inboxes.md#inboxes-update) | Update an inbox |
| [`doorman inboxes delete`](https://doorman.fyi/docs/cli/commands/inboxes.md#inboxes-delete) | Delete an inbox |
| [`doorman inboxes rules list`](https://doorman.fyi/docs/cli/commands/inboxes.md#inboxes-rules-list) | List inbound rules |
| [`doorman inboxes rules create`](https://doorman.fyi/docs/cli/commands/inboxes.md#inboxes-rules-create) | Create an inbound rule |
| [`doorman inboxes rules get`](https://doorman.fyi/docs/cli/commands/inboxes.md#inboxes-rules-get) | Read an inbound rule |
| [`doorman inboxes rules update`](https://doorman.fyi/docs/cli/commands/inboxes.md#inboxes-rules-update) | Update an inbound rule |
| [`doorman inboxes rules delete`](https://doorman.fyi/docs/cli/commands/inboxes.md#inboxes-rules-delete) | Delete an inbound rule |
| [`doorman inboxes rules runs`](https://doorman.fyi/docs/cli/commands/inboxes.md#inboxes-rules-runs) | List rule executions |

## Domains

Account-owned mail domains, DNS records, verification and setup.

| Command | What it does |
| --- | --- |
| [`doorman domains list`](https://doorman.fyi/docs/cli/commands/domains.md#domains-list) | List custom domains |
| [`doorman domains create`](https://doorman.fyi/docs/cli/commands/domains.md#domains-create) | Add a custom domain |
| [`doorman domains get`](https://doorman.fyi/docs/cli/commands/domains.md#domains-get) | Read a custom domain |
| [`doorman domains verify`](https://doorman.fyi/docs/cli/commands/domains.md#domains-verify) | Check the domain's DNS |
| [`doorman domains delete`](https://doorman.fyi/docs/cli/commands/domains.md#domains-delete) | Remove a custom domain |

## API keys

Credentials for agents: account-wide keys from the console, inbox-scoped keys from the API.

| Command | What it does |
| --- | --- |
| [`doorman inboxes keys create`](https://doorman.fyi/docs/cli/commands/api-keys.md#inboxes-keys-create) | Create an inbox key |
| [`doorman inboxes keys list`](https://doorman.fyi/docs/cli/commands/api-keys.md#inboxes-keys-list) | List an inbox's keys |
| [`doorman inboxes keys get`](https://doorman.fyi/docs/cli/commands/api-keys.md#inboxes-keys-get) | Read an inbox key |
| [`doorman inboxes keys revoke`](https://doorman.fyi/docs/cli/commands/api-keys.md#inboxes-keys-revoke) | Revoke an inbox key |

## Mail

Threads, messages, raw and HTML bodies, attachments and their extracted text.

| Command | What it does |
| --- | --- |
| [`doorman inboxes threads list`](https://doorman.fyi/docs/cli/commands/mail.md#inboxes-threads-list) | List threads |
| [`doorman threads get`](https://doorman.fyi/docs/cli/commands/mail.md#threads-get) | Read a thread |
| [`doorman threads update`](https://doorman.fyi/docs/cli/commands/mail.md#threads-update) | Update a thread |
| [`doorman threads trash`](https://doorman.fyi/docs/cli/commands/mail.md#threads-trash) | Trash a thread |
| [`doorman threads messages`](https://doorman.fyi/docs/cli/commands/mail.md#threads-messages) | Read a thread's messages |
| [`doorman inboxes messages list`](https://doorman.fyi/docs/cli/commands/mail.md#inboxes-messages-list) | List messages |
| [`doorman messages get`](https://doorman.fyi/docs/cli/commands/mail.md#messages-get) | Read a message |
| [`doorman messages raw`](https://doorman.fyi/docs/cli/commands/mail.md#messages-raw) | Download the original message |
| [`doorman messages html`](https://doorman.fyi/docs/cli/commands/mail.md#messages-html) | Read the HTML body |
| [`doorman attachments download`](https://doorman.fyi/docs/cli/commands/mail.md#attachments-download) | Download an attachment |
| [`doorman attachments text`](https://doorman.fyi/docs/cli/commands/mail.md#attachments-text) | Read an attachment's text |

## Passport

The outside services an inbox's address is signed up for, the verification codes and sign-in links they send, and how the address signs in to the ones that accept Sign in with Doorman.

| Command | What it does |
| --- | --- |
| [`doorman passport get`](https://doorman.fyi/docs/cli/commands/passport.md#passport-get) | Read passport settings |
| [`doorman passport update`](https://doorman.fyi/docs/cli/commands/passport.md#passport-update) | Update passport settings |
| [`doorman services list`](https://doorman.fyi/docs/cli/commands/passport.md#services-list) | List services |
| [`doorman services get`](https://doorman.fyi/docs/cli/commands/passport.md#services-get) | Read a service |
| [`doorman inboxes services create`](https://doorman.fyi/docs/cli/commands/passport.md#inboxes-services-create) | Declare or add a service |
| [`doorman services update`](https://doorman.fyi/docs/cli/commands/passport.md#services-update) | Update a service |
| [`doorman services delete`](https://doorman.fyi/docs/cli/commands/passport.md#services-delete) | Delete a service |
| [`doorman inboxes verifications list`](https://doorman.fyi/docs/cli/commands/passport.md#inboxes-verifications-list) | Read verification codes |
| [`doorman inboxes sign-ins create`](https://doorman.fyi/docs/cli/commands/passport.md#inboxes-signIns-create) | Start a sign-in |

## Security

Risk assessment and sender trust: the policy that warns, holds and guards sending, the senders an inbox knows, held mail and the audit log.

| Command | What it does |
| --- | --- |
| [`doorman security get`](https://doorman.fyi/docs/cli/commands/security.md#security-get) | Read the security policy |
| [`doorman security update`](https://doorman.fyi/docs/cli/commands/security.md#security-update) | Change the security policy |
| [`doorman inboxes security get`](https://doorman.fyi/docs/cli/commands/security.md#inboxes-security-get) | Read an inbox's security policy |
| [`doorman inboxes security update`](https://doorman.fyi/docs/cli/commands/security.md#inboxes-security-update) | Give an inbox its own security policy |
| [`doorman inboxes security reset`](https://doorman.fyi/docs/cli/commands/security.md#inboxes-security-reset) | Return an inbox to the account's security policy |
| [`doorman inboxes senders list`](https://doorman.fyi/docs/cli/commands/security.md#inboxes-senders-list) | List an inbox's senders |
| [`doorman sender-rules list`](https://doorman.fyi/docs/cli/commands/security.md#senderRules-list) | List sender rules |
| [`doorman sender-rules create`](https://doorman.fyi/docs/cli/commands/security.md#senderRules-create) | Trust or block a sender |
| [`doorman sender-rules delete`](https://doorman.fyi/docs/cli/commands/security.md#senderRules-delete) | Remove a sender rule |
| [`doorman inboxes held list`](https://doorman.fyi/docs/cli/commands/security.md#inboxes-held-list) | List held messages |
| [`doorman messages release`](https://doorman.fyi/docs/cli/commands/security.md#messages-release) | Release a held message |
| [`doorman messages discard`](https://doorman.fyi/docs/cli/commands/security.md#messages-discard) | Discard a held message |
| [`doorman messages feedback`](https://doorman.fyi/docs/cli/commands/security.md#messages-feedback) | Mark a message safe or unsafe |
| [`doorman security audit`](https://doorman.fyi/docs/cli/commands/security.md#security-audit) | Read the security audit log |
| [`doorman security preview`](https://doorman.fyi/docs/cli/commands/security.md#security-preview) | Preview what a policy does to a message |
| [`doorman inboxes held-sends list`](https://doorman.fyi/docs/cli/commands/security.md#inboxes-heldSends-list) | List held sends |
| [`doorman held-sends get`](https://doorman.fyi/docs/cli/commands/security.md#heldSends-get) | Read a held send |
| [`doorman held-sends approve`](https://doorman.fyi/docs/cli/commands/security.md#heldSends-approve) | Send a held send |
| [`doorman held-sends discard`](https://doorman.fyi/docs/cli/commands/security.md#heldSends-discard) | Discard a held send |

## Sending

New messages and replies from an inbox, with idempotent retries.

| Command | What it does |
| --- | --- |
| [`doorman inboxes send`](https://doorman.fyi/docs/cli/commands/sending.md#inboxes-send) | Send a message or reply |
| [`doorman inboxes drafts create`](https://doorman.fyi/docs/cli/commands/sending.md#inboxes-drafts-create) | Write a draft for the owner to send |
| [`doorman drafts delete`](https://doorman.fyi/docs/cli/commands/sending.md#drafts-delete) | Take a draft back |

## Webhooks

The inbox webhook, account endpoints, their signed deliveries and the delivery log.

| Command | What it does |
| --- | --- |
| [`doorman inboxes webhook get`](https://doorman.fyi/docs/cli/commands/webhooks.md#inboxes-webhook-get) | Read the inbox webhook |
| [`doorman inboxes webhook set`](https://doorman.fyi/docs/cli/commands/webhooks.md#inboxes-webhook-set) | Set the inbox webhook |
| [`doorman inboxes webhook rotate-secret`](https://doorman.fyi/docs/cli/commands/webhooks.md#inboxes-webhook-rotateSecret) | Rotate the inbox webhook's secret |
| [`doorman inboxes webhook delete`](https://doorman.fyi/docs/cli/commands/webhooks.md#inboxes-webhook-delete) | Remove the inbox webhook |
| [`doorman inboxes webhook deliveries`](https://doorman.fyi/docs/cli/commands/webhooks.md#inboxes-webhook-deliveries) | List the inbox webhook's deliveries |
| [`doorman webhooks list`](https://doorman.fyi/docs/cli/commands/webhooks.md#webhooks-list) | List endpoints |
| [`doorman webhooks create`](https://doorman.fyi/docs/cli/commands/webhooks.md#webhooks-create) | Create an endpoint |
| [`doorman webhooks get`](https://doorman.fyi/docs/cli/commands/webhooks.md#webhooks-get) | Read an endpoint |
| [`doorman webhooks update`](https://doorman.fyi/docs/cli/commands/webhooks.md#webhooks-update) | Change an endpoint |
| [`doorman webhooks delete`](https://doorman.fyi/docs/cli/commands/webhooks.md#webhooks-delete) | Delete an endpoint |
| [`doorman webhooks rotate-secret`](https://doorman.fyi/docs/cli/commands/webhooks.md#webhooks-rotateSecret) | Rotate an endpoint's secret |
| [`doorman webhooks test`](https://doorman.fyi/docs/cli/commands/webhooks.md#webhooks-test) | Send a test delivery |
| [`doorman webhooks deliveries`](https://doorman.fyi/docs/cli/commands/webhooks.md#webhooks-deliveries) | List an endpoint's deliveries |
| [`doorman deliveries retry`](https://doorman.fyi/docs/cli/commands/webhooks.md#deliveries-retry) | Retry a delivery |

## Events

The account's event log: page back through it, or poll it forward.

| Command | What it does |
| --- | --- |
| [`doorman events list`](https://doorman.fyi/docs/cli/commands/events.md#events-list) | List or poll events |
| [`doorman events get`](https://doorman.fyi/docs/cli/commands/events.md#events-get) | Read an event |

## Stream

Events pushed over a WebSocket, with replay.

| Command | What it does |
| --- | --- |
| [`doorman events tail`](https://doorman.fyi/docs/cli/commands/stream.md#stream) | Open the event stream |

## Apps

Developer clients, installed apps and explicit session-bound consent.

| Command | What it does |
| --- | --- |
| [`doorman apps list`](https://doorman.fyi/docs/cli/commands/apps.md#apps-list) | List developer apps |
| [`doorman apps create`](https://doorman.fyi/docs/cli/commands/apps.md#apps-create) | Register an app |
| [`doorman apps get`](https://doorman.fyi/docs/cli/commands/apps.md#apps-get) | Read an app |
| [`doorman apps update`](https://doorman.fyi/docs/cli/commands/apps.md#apps-update) | Update an app |
| [`doorman apps delete`](https://doorman.fyi/docs/cli/commands/apps.md#apps-delete) | Delete an app |
| [`doorman apps rotate-secret`](https://doorman.fyi/docs/cli/commands/apps.md#apps-rotateSecret) | Rotate a client secret |
| [`doorman installs list`](https://doorman.fyi/docs/cli/commands/apps.md#installs-list) | List installed apps |
| [`doorman installs revoke`](https://doorman.fyi/docs/cli/commands/apps.md#installs-revoke) | Revoke an installation |

## Beyond the operations

- [Sign-in and connecting](https://doorman.fyi/docs/cli/commands/session.md): The commands of the doorman command line that are not an operation of the API: login, logout, whoami, connect and mcp, the flags every command takes, and what is kept on the machine.
