Reference Commands

line watch

Stream new messages and events. In a terminal, prints one readable line per message; when piped, or with --json, writes one JSON object per line. Starts now on first use and resumes from the saved position on later runs. Never sends read receipts.

Usage#

Terminal
line watch [options]

Stream#

OptionDescription
--from-nowdiscard the saved resume position and start at the current revision
--limit Nstop after N emitted events; 0 watches continuously
--timeout DURATIONstop after this duration, e.g. 30s; 0 watches continuously

Output#

OptionDescription
--jsonwrite newline-delimited JSON (default when stdout is not a terminal) (default true)
--verbosein readable output, also show non-message events

Examples#

Terminal
line watch
line watch --json | your-program
line watch --limit 10 --timeout 5m