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.

On this page
  1. How to read it
  2. System
  3. Account
  4. Inboxes
  5. Domains
  6. API keys
  7. Mail
  8. Passport
  9. Security
  10. Sending
  11. Webhooks
  12. Events
  13. Stream
  14. Apps
  15. Beyond the operations

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. The CLI 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, 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.

System

Liveness and this document. No credential.

CommandWhat it does
doorman healthHealth check
doorman openapiThe OpenAPI document

Account

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

CommandWhat it does
doorman meWho am I
doorman overviewOverview
doorman metricsMetrics

Inboxes

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

CommandWhat it does
doorman inboxes listList inboxes
doorman inboxes createIssue an inbox
doorman inboxes getRead an inbox
doorman inboxes updateUpdate an inbox
doorman inboxes deleteDelete an inbox
doorman inboxes rules listList inbound rules
doorman inboxes rules createCreate an inbound rule
doorman inboxes rules getRead an inbound rule
doorman inboxes rules updateUpdate an inbound rule
doorman inboxes rules deleteDelete an inbound rule
doorman inboxes rules runsList rule executions

Domains

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

CommandWhat it does
doorman domains listList custom domains
doorman domains createAdd a custom domain
doorman domains getRead a custom domain
doorman domains verifyCheck the domain's DNS
doorman domains deleteRemove a custom domain

API keys

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

CommandWhat it does
doorman inboxes keys createCreate an inbox key
doorman inboxes keys listList an inbox's keys
doorman inboxes keys getRead an inbox key
doorman inboxes keys revokeRevoke an inbox key

Mail

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

CommandWhat it does
doorman inboxes threads listList threads
doorman threads getRead a thread
doorman threads updateUpdate a thread
doorman threads trashTrash a thread
doorman threads messagesRead a thread's messages
doorman inboxes messages listList messages
doorman messages getRead a message
doorman messages rawDownload the original message
doorman messages htmlRead the HTML body
doorman attachments downloadDownload an attachment
doorman attachments textRead 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.

CommandWhat it does
doorman passport getRead passport settings
doorman passport updateUpdate passport settings
doorman services listList services
doorman services getRead a service
doorman inboxes services createDeclare or add a service
doorman services updateUpdate a service
doorman services deleteDelete a service
doorman inboxes verifications listRead verification codes
doorman inboxes sign-ins createStart 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.

CommandWhat it does
doorman security getRead the security policy
doorman security updateChange the security policy
doorman inboxes security getRead an inbox's security policy
doorman inboxes security updateGive an inbox its own security policy
doorman inboxes security resetReturn an inbox to the account's security policy
doorman inboxes senders listList an inbox's senders
doorman sender-rules listList sender rules
doorman sender-rules createTrust or block a sender
doorman sender-rules deleteRemove a sender rule
doorman inboxes held listList held messages
doorman messages releaseRelease a held message
doorman messages discardDiscard a held message
doorman messages feedbackMark a message safe or unsafe
doorman security auditRead the security audit log
doorman security previewPreview what a policy does to a message
doorman inboxes held-sends listList held sends
doorman held-sends getRead a held send
doorman held-sends approveSend a held send
doorman held-sends discardDiscard a held send

Sending

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

CommandWhat it does
doorman inboxes sendSend a message or reply
doorman inboxes drafts createWrite a draft for the owner to send
doorman drafts deleteTake a draft back

Webhooks

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

CommandWhat it does
doorman inboxes webhook getRead the inbox webhook
doorman inboxes webhook setSet the inbox webhook
doorman inboxes webhook rotate-secretRotate the inbox webhook's secret
doorman inboxes webhook deleteRemove the inbox webhook
doorman inboxes webhook deliveriesList the inbox webhook's deliveries
doorman webhooks listList endpoints
doorman webhooks createCreate an endpoint
doorman webhooks getRead an endpoint
doorman webhooks updateChange an endpoint
doorman webhooks deleteDelete an endpoint
doorman webhooks rotate-secretRotate an endpoint's secret
doorman webhooks testSend a test delivery
doorman webhooks deliveriesList an endpoint's deliveries
doorman deliveries retryRetry a delivery

Events

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

CommandWhat it does
doorman events listList or poll events
doorman events getRead an event

Stream

Events pushed over a WebSocket, with replay.

CommandWhat it does
doorman events tailOpen the event stream

Apps

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

CommandWhat it does
doorman apps listList developer apps
doorman apps createRegister an app
doorman apps getRead an app
doorman apps updateUpdate an app
doorman apps deleteDelete an app
doorman apps rotate-secretRotate a client secret
doorman installs listList installed apps
doorman installs revokeRevoke an installation

Beyond the operations

  • Sign-in and connecting: 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.

Up Down to move, Enter to open, Esc to close