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.

doorman passport get

Command for 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

doorman passport update [flags]

Sends 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
  • --alert-emailsbooleanoptional

    Whether to email the account owner when a service receives an unexplained code or link, a password reset, or a security notice.

  • --agent-sign-inbooleanoptional

    Whether an agent may sign in to a service the owner has not allowed yet.

  • --share-ownerbooleanoptional

    Whether a service an agent signed in to alone is told who owns the agent, when it asks.

  • --briefing-emailsbooleanoptional

    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-hourintegeroptional

    The hour of the day, in timeZone, at which the briefing is sent.

  • --time-zonestringoptional

    The IANA time zone briefingHour is read in.

  • --jsonobjectoptional

    The request body as one JSON object. A flag given beside it replaces the field of the same name.

Example

doorman passport update \
  --alert-emails true

doorman services list

Command

doorman services list [flags]

Sends services.list: GET /v1/services

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

Flags
  • --inbox-idstringoptional

    Only this inbox's services.

  • --status"pending" | "active" | "cancelled" | "archived"optional

    Only services with this status. Without it, every status but archived.

  • --attention"true" | "false"optional

    Only services with (true) or without (false) an active warning.

  • --qstringoptional

    Keep the services whose domain or name contains this text, case-insensitively.

  • --limitintegeroptional

    Page size, 1 to 100. Defaults to 50.

  • --offsetintegeroptional

    Rows to skip. Defaults to 0.

doorman services get

Command

doorman services get <serviceId> [flags]

Sends services.get: GET /v1/services/{serviceId}

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

Flags
  • --service-idstringoptional

    The same as the argument <serviceId>, for a script that names everything.

Example

doorman services get svc_01jc5g2b3c4d5e6f7g8h9j0k1m

doorman inboxes services create

Command

doorman inboxes services create <inboxId> [flags]

Sends 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
  • --inbox-idstringoptional

    The same as the argument <inboxId>, for a script that names everything.

  • --domainstringrequired

    The service's domain, or a host under it: app.example.net is recorded as example.net.

  • --namestringoptional

    A label, at most 100 characters. Defaults to the domain.

  • --notestring | nulloptional

    At most 500 characters: why the agent signed up, or the plan it chose and its price.

  • --jsonobjectoptional

    The request body as one JSON object. A flag given beside it replaces the field of the same name.

Example

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

doorman services update

Command

doorman services update <serviceId> [flags]

Sends services.update: PATCH /v1/services/{serviceId}

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

Flags
  • --service-idstringoptional

    The same as the argument <serviceId>, for a script that names everything.

  • --namestringoptional

  • --status"pending" | "active" | "cancelled" | "archived"optional

    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.

  • --notestring | nulloptional

  • --planobject | nulloptional

  • --attentionanyoptional

    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-inobjectoptional

    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).

  • --jsonobjectoptional

    The request body as one JSON object. A flag given beside it replaces the field of the same name.

Example

doorman services update svc_01jc5g2b3c4d5e6f7g8h9j0k1m \
  --status cancelled

doorman services delete

Command

doorman services delete <serviceId> [flags]

Sends services.delete: DELETE /v1/services/{serviceId}

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

Flags
  • --service-idstringoptional

    The same as the argument <serviceId>, for a script that names everything.

Example

doorman services delete svc_01jc5g2b3c4d5e6f7g8h9j0k1m

doorman inboxes verifications list

Command

doorman inboxes verifications list <inboxId> [flags]

Sends 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
  • --inbox-idstringoptional

    The same as the argument <inboxId>, for a script that names everything.

  • --domainstringoptional

    Only codes and links from this service's domain, or a host under it.

  • --sincestring (date-time)optional

    Only those that arrived after this instant.

  • --wait-secondsintegeroptional

    When none has arrived yet, wait up to this many seconds for one. Defaults to 0.

Example

doorman inboxes verifications list inb_01jc4q7w9k2m5n8p3r6t1v4x7z

doorman inboxes sign-ins create

Command

doorman inboxes sign-ins create <inboxId> [flags]

Sends 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, which a deployment switches on: where it is off, the call answers 404 not_found.

Flags
  • --inbox-idstringoptional

    The same as the argument <inboxId>, for a script that names everything.

  • --domainstringoptional

    The service's domain or host.

  • --client-idstringoptional

    Or the relying party's id, when the service states one.

  • --jsonobjectoptional

    The request body as one JSON object. A flag given beside it replaces the field of the same name.

Example

doorman inboxes sign-ins create inb_01jc4q7w9k2m5n8p3r6t1v4x7z \
  --domain app.example.net

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