@inquir/compute-cliv0.4.1 · Node.js 22+
Usage#
inquir apps log-historybash
inquir apps log-history <app> [options]
Options#
| Option | Description |
|---|---|
--since <duration|ISO> | Window back from now, such as 30m, 2h or 7d (default 1h), or an ISO timestamp. |
--from <ISO> | Start of a fixed window; use with --to. |
--to <ISO> | End of a fixed window. |
--http | Read gateway HTTP logs instead of container output. |
--release <id> | Only this release, including old ones. |
--replica <name|index> | Only this replica. |
--level <level> | Minimum level: trace, debug, info, warn, error or fatal. |
--stream <stdout|stderr|system> | Only one output stream. |
--search <text> | Search messages; with --http, the URL path. |
--status <code> | HTTP status filter; requires --http. |
--limit <n> | Page size, newest first. |
--cursor <cursor> | Next page; keep the same window. |
--json | Print machine-readable results. |
Global flags, environments and CLI credentials ↗
Examples#
Example 1bash
inquir apps log-history web --since 2h --level error
Example 2bash
inquir apps log-history web --http --status 500 --since 1d
Behavior#
Runtime logs are kept for 7 days and HTTP logs for 30 days. The command reads history and does not follow; use apps logs for live output.