---
title: "CLI: Events"
description: "The commands of the doorman command line under Events. The account's event log: page back through it, or poll it forward."
url: https://doorman.fyi/docs/cli/commands/events
markdown: https://doorman.fyi/docs/cli/commands/events.md
area: "SDKs and tools"
section: "Command line"
---

# CLI: Events

The commands of the doorman command line under Events. The account's event log: page back through it, or poll it forward.

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

## doorman events list

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

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

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

**Flags**

| Flag | Type | Required | Description |
| --- | --- | --- | --- |
| `--inbox-id` | `string` | no | Only this inbox. |
| `--thread-id` | `string` | no | Only events whose stored payload names this thread. Can be combined with inboxId and type. A valid id with no visible matching events returns an empty result, including ids from another account or inbox. Trashing a thread does not remove its stored events. |
| `--type` | `"message.received" \| "message.sent" \| "thread.updated" \| "inbox.created" \| "inbox.deleted" \| "delivery.failed" \| "message.held" \| "send.held" \| "send.discarded" \| "sign_in.requested" \| "sign_in.completed"` | no | Only this event type. |
| `--limit` | `integer` | no | Page size, 1 to 100. Defaults to 50. |
| `--cursor` | `string` | no | Page from here: events with a smaller `seq`. |
| `--after` | `string` | no | Poll from here: events with a larger `seq`, oldest first. |

## doorman events get

Command:
```sh
doorman events get <eventId> [flags]
```

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

Read an event. Access `any`: any API key, or a console session. An app token needs `events:read` and `mail:read`.

**Flags**

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

Example:
```sh
doorman events get evt_01jc5e5f6g7h8j9k0m1n2p3q4r
```
