---
title: "CLI: Passport"
description: "The commands of the doorman command line under 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."
url: https://doorman.fyi/docs/cli/commands/passport
markdown: https://doorman.fyi/docs/cli/commands/passport.md
area: "SDKs and tools"
section: "Command line"
---

# CLI: Passport

The commands of the doorman command line under 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.

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

## doorman passport get

Command:
```sh
doorman passport get
```

Operation [`passport.get`](https://doorman.fyi/docs/reference/passport.md#passport-get): `GET /v1/passport`

Read passport settings. Access `account`: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`. App tokens are refused.

## doorman passport update

Command:
```sh
doorman passport update [flags]
```

Operation [`passport.update`](https://doorman.fyi/docs/reference/passport.md#passport-update): `PATCH /v1/passport`

Update passport settings. Access `account`: an account-scoped key or a console session; an inbox-scoped key gets 403 `forbidden`. App tokens are refused.

**Flags**

| Flag | Type | Required | Description |
| --- | --- | --- | --- |
| `--alert-emails` | `boolean` | no | Whether to email the account owner when a service receives an unexplained code or link, a password reset, or a security notice. |
| `--agent-sign-in` | `boolean` | no | Whether an agent may sign in to a service the owner has not allowed yet. |
| `--share-owner` | `boolean` | no | Whether a service an agent signed in to alone is told who owns the agent, when it asks. |
| `--briefing-emails` | `boolean` | no | Whether to email the account owner a daily briefing in counts only. The first one covers what arrives from the moment it is switched on. |
| `--briefing-hour` | `integer` | no | The hour of the day, in `timeZone`, at which the briefing is sent. |
| `--time-zone` | `string` | no | The IANA time zone `briefingHour` is read in. |
| `--json` | `object` | no | The request body as one JSON object. A flag given beside it replaces the field of the same name. |

Example:
```sh
doorman passport update \
  --alert-emails true
```

## doorman services list

Command:
```sh
doorman services list [flags]
```

Operation [`services.list`](https://doorman.fyi/docs/reference/passport.md#services-list): `GET /v1/services`

List services. Access `any`: any API key, or a console session. An app token needs `mail:read`.

**Flags**

| Flag | Type | Required | Description |
| --- | --- | --- | --- |
| `--inbox-id` | `string` | no | Only this inbox's services. |
| `--status` | `"pending" \| "active" \| "cancelled" \| "archived"` | no | Only services with this status. Without it, every status but archived. |
| `--attention` | `"true" \| "false"` | no | Only services with (`true`) or without (`false`) an active warning. |
| `--q` | `string` | no | Keep the services whose domain or name contains this text, case-insensitively. |
| `--limit` | `integer` | no | Page size, 1 to 100. Defaults to 50. |
| `--offset` | `integer` | no | Rows to skip. Defaults to 0. |

## doorman services get

Command:
```sh
doorman services get <serviceId> [flags]
```

Operation [`services.get`](https://doorman.fyi/docs/reference/passport.md#services-get): `GET /v1/services/{serviceId}`

Read a service. Access `any`: any API key, or a console session. App tokens are refused.

**Flags**

| Flag | Type | Required | Description |
| --- | --- | --- | --- |
| `--service-id` | `string` | no | The same as the argument `<serviceId>`, for a script that names everything. |

Example:
```sh
doorman services get svc_01jc5g2b3c4d5e6f7g8h9j0k1m
```

## doorman inboxes services create

Command:
```sh
doorman inboxes services create <inboxId> [flags]
```

Operation [`inboxes.services.create`](https://doorman.fyi/docs/reference/passport.md#inboxes-services-create): `POST /v1/inboxes/{inboxId}/services`

Declare or add a service. Access `any`: any API key, or a console session. An app token needs `mail:write` and `mail:read`.

**Flags**

| Flag | Type | Required | Description |
| --- | --- | --- | --- |
| `--inbox-id` | `string` | no | The same as the argument `<inboxId>`, for a script that names everything. |
| `--domain` | `string` | yes | The service's domain, or a host under it: `app.example.net` is recorded as `example.net`. |
| `--name` | `string` | no | A label, at most 100 characters. Defaults to the domain. |
| `--note` | `string \| null` | no | At most 500 characters: why the agent signed up, or the plan it chose and its price. |
| `--json` | `object` | no | The request body as one JSON object. A flag given beside it replaces the field of the same name. |

Example:
```sh
doorman inboxes services create inb_01jc4q7w9k2m5n8p3r6t1v4x7z \
  --domain example.net \
  --name 'Example Tools' \
  --note 'Sign-up for the weekly report'
```

## doorman services update

Command:
```sh
doorman services update <serviceId> [flags]
```

Operation [`services.update`](https://doorman.fyi/docs/reference/passport.md#services-update): `PATCH /v1/services/{serviceId}`

Update a service. Access `any`: any API key, or a console session. App tokens are refused.

**Flags**

| Flag | Type | Required | Description |
| --- | --- | --- | --- |
| `--service-id` | `string` | no | The same as the argument `<serviceId>`, for a script that names everything. |
| `--name` | `string` | no |  |
| `--status` | `"pending" \| "active" \| "cancelled" \| "archived"` | no | `archived` sets the service aside as not a sign-up: mail from it no longer makes it pending again. It clears any active warning and stops every one of the service's `signIns`. |
| `--note` | `string \| null` | no |  |
| `--plan` | `object \| null` | no |  |
| `--attention` | `any` | no | Null clears an active `attention` warning once the owner has checked the account. Needs a console session unless the account allows its account keys to (403 `session_required`). |
| `--sign-in` | `object` | no | A decision about one of the service's `signIns`. Stopping one, and no longer sharing the owner, are open to any key that reaches the service. Allowing one, and sharing the owner, need a console session unless the account allows its account keys to (403 `session_required`). |
| `--json` | `object` | no | The request body as one JSON object. A flag given beside it replaces the field of the same name. |

Example:
```sh
doorman services update svc_01jc5g2b3c4d5e6f7g8h9j0k1m \
  --status cancelled
```

## doorman services delete

Command:
```sh
doorman services delete <serviceId> [flags]
```

Operation [`services.delete`](https://doorman.fyi/docs/reference/passport.md#services-delete): `DELETE /v1/services/{serviceId}`

Delete a service. Access `any`: any API key, or a console session. App tokens are refused.

**Flags**

| Flag | Type | Required | Description |
| --- | --- | --- | --- |
| `--service-id` | `string` | no | The same as the argument `<serviceId>`, for a script that names everything. |

Example:
```sh
doorman services delete svc_01jc5g2b3c4d5e6f7g8h9j0k1m
```

## doorman inboxes verifications list

Command:
```sh
doorman inboxes verifications list <inboxId> [flags]
```

Operation [`inboxes.verifications.list`](https://doorman.fyi/docs/reference/passport.md#inboxes-verifications-list): `GET /v1/inboxes/{inboxId}/verifications`

Read verification codes. Access `any`: any API key, or a console session. An app token needs `mail:read`.

**Flags**

| Flag | Type | Required | Description |
| --- | --- | --- | --- |
| `--inbox-id` | `string` | no | The same as the argument `<inboxId>`, for a script that names everything. |
| `--domain` | `string` | no | Only codes and links from this service's domain, or a host under it. |
| `--since` | `string (date-time)` | no | Only those that arrived after this instant. |
| `--wait-seconds` | `integer` | no | When none has arrived yet, wait up to this many seconds for one. Defaults to 0. |

Example:
```sh
doorman inboxes verifications list inb_01jc4q7w9k2m5n8p3r6t1v4x7z
```

## doorman inboxes sign-ins create

Command:
```sh
doorman inboxes sign-ins create <inboxId> [flags]
```

Operation [`inboxes.signIns.create`](https://doorman.fyi/docs/reference/passport.md#inboxes-signIns-create): `POST /v1/inboxes/{inboxId}/sign-ins`

Start a sign-in. Access `any`: any API key, or a console session. An app token needs `mail:write` and `mail:read`. Part of [Sign in with Doorman](https://doorman.fyi/docs/passport.md#sign-in), which a deployment switches on: where it is off, the call answers `404 not_found`.

**Flags**

| Flag | Type | Required | Description |
| --- | --- | --- | --- |
| `--inbox-id` | `string` | no | The same as the argument `<inboxId>`, for a script that names everything. |
| `--domain` | `string` | no | The service's domain or host. |
| `--client-id` | `string` | no | Or the relying party's id, when the service states one. |
| `--json` | `object` | no | The request body as one JSON object. A flag given beside it replaces the field of the same name. |

Example:
```sh
doorman inboxes sign-ins create inb_01jc4q7w9k2m5n8p3r6t1v4x7z \
  --domain app.example.net
```
