CLI: Apps

The commands of the doorman command line under Apps. Developer clients, installed apps and explicit session-bound consent.

doorman apps list

Command for apps.list: GET /v1/apps

List developer apps. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.

doorman apps create

Command

doorman apps create [flags]

Sends apps.create: POST /v1/apps

Register an app. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.

Flags
  • --namestringrequired

  • --redirect-urisstring[]required

  • --scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]required

  • --token-endpoint-auth-method"none" | "client_secret_post"optional

  • --jsonobjectoptional

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

Example

doorman apps create \
  --name 'Mail triage' \
  --redirect-uris '["https://agent.example.com/callback"]' \
  --scopes '["mail:read"]'

doorman apps get

Command

doorman apps get <appId> [flags]

Sends apps.get: GET /v1/apps/{appId}

Read an app. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.

Flags
  • --app-idstringoptional

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

Example

doorman apps get app_01jc5f1a2b3c4d5e6f7g8h9j0k

doorman apps update

Command

doorman apps update <appId> [flags]

Sends apps.update: PATCH /v1/apps/{appId}

Update an app. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.

Flags
  • --app-idstringoptional

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

  • --namestringoptional

  • --redirect-urisstring[]optional

  • --scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]optional

  • --jsonobjectoptional

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

Example

doorman apps update app_01jc5f1a2b3c4d5e6f7g8h9j0k \
  --name 'Mail review'

doorman apps delete

Command

doorman apps delete <appId> [flags]

Sends apps.delete: DELETE /v1/apps/{appId}

Delete an app. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.

Flags
  • --app-idstringoptional

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

Example

doorman apps delete app_01jc5f1a2b3c4d5e6f7g8h9j0k

doorman apps rotate-secret

Command

doorman apps rotate-secret <appId> [flags]

Sends apps.rotateSecret: POST /v1/apps/{appId}/rotate-secret

Rotate a client secret. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.

Flags
  • --app-idstringoptional

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

Example

doorman apps rotate-secret app_01jc5f1a2b3c4d5e6f7g8h9j0k

doorman installs list

Command for installs.list: GET /v1/app-installs

List installed apps. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.

doorman installs revoke

Command

doorman installs revoke <installationId> [flags]

Sends installs.revoke: DELETE /v1/app-installs/{installationId}

Revoke an installation. Access session: a console session only; an API key gets 403 session_required. App tokens are refused.

Flags
  • --installation-idstringoptional

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

Example

doorman installs revoke ins_01jc5f1a2b3c4d5e6f7g8h9j0k

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