View and stream project logs from the terminal
CLI
The new apivault logs command shows a project's audit and request logs in your terminal.
Shell
# View recent logs apivault logs # Stream new events as they happen apivault logs --follow # Filter by status, source, method, or search text apivault logs --status error --source mcp apivault logs --method POST --search "/api/keys" # Inspect one entry apivault logs get <log-id>
- Live following:
apivault logs tailandapivault logs -fboth stream new events. - Filters:
--status,--source,--method,--search,--event-type,--user,--key,--date, and--end-date. - Inspection:
apivault logs get <id>, also available asinspect <id>, shows duration, user agent, IP, and the details payload. - Output: tables show color-coded status, method, duration, and actor. Pass
--jsonfor machine-readable output.
Log endpoints can also now resolve a project by ID or slug.
Learn more in the logs command reference.