---
title: "CLI: Stream"
description: "The commands of the doorman command line under Stream. Events pushed over a WebSocket, with replay."
url: https://doorman.fyi/docs/cli/commands/stream
markdown: https://doorman.fyi/docs/cli/commands/stream.md
area: "SDKs and tools"
section: "Command line"
---

# CLI: Stream

The commands of the doorman command line under Stream. Events pushed over a WebSocket, with replay.

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

## doorman events tail

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

Operation [`stream`](https://doorman.fyi/docs/reference/stream.md#stream): `GET /v1/ws`

Open the event stream. Access `key`: an API key, or a correctly scoped app token where delegated access is allowed; console sessions are refused. An app token needs `events:read` and `mail:read`.

**Flags**

| Flag | Type | Required | Description |
| --- | --- | --- | --- |
| `--inbox` | `string` | no | The same as `--inbox-id`. |
| `--inbox-id` | `string` | no | Watch this inbox only. Repeat the flag, or separate ids with commas, for several. |
| `--event-type` | `string` | no | Watch this event type only. Repeat the flag, or separate types with commas, for several. |
| `--last-event-id` | `string` | no | Replay what came after this event before the live feed. |
| `--limit` | `integer` | no | Stop after this many events. |
