Auralogger CLI commands — init, checks, test logs, get-logs filters
Full auralogger-cli reference: init, server-check, client-check, test-serverlog, test-clientlog, test-log, get-logs. JSON filter grammar -field [--operator] value, operators --not-in and --since, paging with -nextpage, -skip, -maxcount (max 100).
CLI command reference
Invocation:
auralogger <command> [arguments...]
Filter grammar for get-logs:
-<field> [--<operator>] <json-value>
Main commands
- init:
- Performs proj_auth and prints dotenv lines/snippets.
- Variables include AURALOGGER_PROJECT_TOKEN, AURALOGGER_USER_SECRET, AURALOGGER_PROJECT_SESSION,
NEXT_PUBLIC_AURALOGGER_PROJECT_TOKEN, VITE_AURALOGGER_PROJECT_TOKEN.
- server-check:
- Validates server WebSocket connectivity and server credentials.
- client-check:
- Validates browser logging socket path and session context resolution.
- test-serverlog:
- Sends synthetic server logs through AuraServer path.
- test-clientlog:
- Sends synthetic client logs through AuraClient path.
- test-log:
- Smoke-test style client logging path.
- get-logs:
- Fetches logs with filters and one-page-at-a-time paging.
Paging examples
- Page 1:
auralogger get-logs -maxcount 20
- Page 2:
auralogger get-logs -maxcount 20 -nextpage 18423
- Page 3:
auralogger get-logs -maxcount 20 -nextpage 16701
Fields and operators
- type: in, not-in (default in)
- message: contains, not-contains (default contains)
- location: in, not-in (default in)
- time: since, from-to (default since)
- order: eq
- maxcount: eq
- nextpage: eq
- data.<path>: eq
Examples
auralogger get-logs -type '["error","warn"]' -maxcount 50
auralogger get-logs -message '["timeout"]' -nextpage 18423 -maxcount 30
auralogger get-logs -type --not-in '["info","debug"]' -time --since '["10m"]'
auralogger get-logs -data.userId '["06431f39-55e2-4289-80c8-5d0340a8b66e"]'
Run commands from the directory containing .env / .env.local so process.cwd() resolves credentials.