# cortex tail

Source: https://usecns.dev/cortex-cli-tail/

[Start here](https://usecns.dev/manual-cortex/)
[CLI commands](https://usecns.dev/commands-cortex/)
[Configuration & integration](https://usecns.dev/cortex-topics/)

Usage: `cortex tail [--max-events <N>] [COMMON_OPTIONS]`. Opens `/ws` with seat/conversation query and optional bearer header; prints each received JSON frame as a line. `--max-events` defaults unlimited, counts **all frames**, and closes after reaching the count. There is no CLI `--since-entry-id` option. Socket close resolves successfully; socket/JSON processing failures may error. Use protocol clients for cursor-resumable replay.

See [CLI conventions](https://usecns.dev/cortex-cli-usage/) for shared configuration and exit behavior, or [browse all commands](https://usecns.dev/commands-cortex/).