Limai Docs
CLI Reference

watch

Real-time event monitoring via SSE

$limai watch <projectId>

Watch real-time events for a project using Server-Sent Events. Requires the SSE URL to be configured.

Options
--events <types>Comma-separated event types to filter
--timeout <seconds>Max watch duration in seconds
--jsonOutput events as JSON
--verboseEnable debug logging

Prerequisites

The SSE URL must be configured before using this command:

limai config set sseUrl wss://ws.limai.ai

Behavior

Connects to the event stream and prints events in real time. The command runs indefinitely until interrupted with Ctrl+C or until the --timeout is reached.

Examples

Watch all events for a project

limai watch proj_abc123

Watch specific event types

limai watch proj_abc123 --events DOCUMENT_EXTRACTED,DOCUMENT_REVIEWED

Watch with a timeout

limai watch proj_abc123 --timeout 300

Stream events as JSON for piping

limai watch proj_abc123 --json | jq '.type'