---
title: "CLI: Apps"
description: "The commands of the doorman command line under Apps. Developer clients, installed apps and explicit session-bound consent."
url: https://doorman.fyi/docs/cli/commands/apps
markdown: https://doorman.fyi/docs/cli/commands/apps.md
area: "SDKs and tools"
section: "Command line"
---

# CLI: Apps

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

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

## doorman apps list

Command:
```sh
doorman apps list
```

Operation [`apps.list`](https://doorman.fyi/docs/reference/apps.md#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:
```sh
doorman apps create [flags]
```

Operation [`apps.create`](https://doorman.fyi/docs/reference/apps.md#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**

| Flag | Type | Required | Description |
| --- | --- | --- | --- |
| `--name` | `string` | yes |  |
| `--redirect-uris` | `string[]` | yes |  |
| `--scopes` | `("account:read" \| "inboxes:read" \| "inboxes:write" \| "mail:read" \| "mail:write" \| "mail:send" \| "mail:draft" \| "events:read" \| "webhooks:manage" \| "rules:manage")[]` | yes |  |
| `--token-endpoint-auth-method` | `"none" \| "client_secret_post"` | no |  |
| `--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 apps create \
  --name 'Mail triage' \
  --redirect-uris '["https://agent.example.com/callback"]' \
  --scopes '["mail:read"]'
```

## doorman apps get

Command:
```sh
doorman apps get <appId> [flags]
```

Operation [`apps.get`](https://doorman.fyi/docs/reference/apps.md#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**

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

Example:
```sh
doorman apps get app_01jc5f1a2b3c4d5e6f7g8h9j0k
```

## doorman apps update

Command:
```sh
doorman apps update <appId> [flags]
```

Operation [`apps.update`](https://doorman.fyi/docs/reference/apps.md#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**

| Flag | Type | Required | Description |
| --- | --- | --- | --- |
| `--app-id` | `string` | no | The same as the argument `<appId>`, for a script that names everything. |
| `--name` | `string` | no |  |
| `--redirect-uris` | `string[]` | no |  |
| `--scopes` | `("account:read" \| "inboxes:read" \| "inboxes:write" \| "mail:read" \| "mail:write" \| "mail:send" \| "mail:draft" \| "events:read" \| "webhooks:manage" \| "rules:manage")[]` | no |  |
| `--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 apps update app_01jc5f1a2b3c4d5e6f7g8h9j0k \
  --name 'Mail review'
```

## doorman apps delete

Command:
```sh
doorman apps delete <appId> [flags]
```

Operation [`apps.delete`](https://doorman.fyi/docs/reference/apps.md#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**

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

Example:
```sh
doorman apps delete app_01jc5f1a2b3c4d5e6f7g8h9j0k
```

## doorman apps rotate-secret

Command:
```sh
doorman apps rotate-secret <appId> [flags]
```

Operation [`apps.rotateSecret`](https://doorman.fyi/docs/reference/apps.md#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**

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

Example:
```sh
doorman apps rotate-secret app_01jc5f1a2b3c4d5e6f7g8h9j0k
```

## doorman installs list

Command:
```sh
doorman installs list
```

Operation [`installs.list`](https://doorman.fyi/docs/reference/apps.md#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:
```sh
doorman installs revoke <installationId> [flags]
```

Operation [`installs.revoke`](https://doorman.fyi/docs/reference/apps.md#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**

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

Example:
```sh
doorman installs revoke ins_01jc5f1a2b3c4d5e6f7g8h9j0k
```
