Faults CLI reference
The faults command lets you view and manage faults (errors) in your projects.
All faults commands require --project-id.
List faults
Section titled “List faults”hb faults list --project-id 12345With search and ordering
Section titled “With search and ordering”# Search for specific error classeshb faults list --project-id 12345 --query "class:RuntimeError"
# Sort by frequency instead of recencyhb faults list --project-id 12345 --order frequent
# Limit resultshb faults list --project-id 12345 --limit 10Required flags:
--project-id— Project ID
Optional flags:
-q, --query— Search query string--order— Sort order:recentorfrequent(default:recent)--limit— Maximum results (default: 25, max: 25)-o, --output— Output format:tableorjson(default:table)
Get fault details
Section titled “Get fault details”hb faults get --project-id 12345 --id 67890Required flags:
--project-id— Project ID--id— Fault ID
Optional flags:
-o, --output— Output format:textorjson(default:text)
List notices for a fault
Section titled “List notices for a fault”View individual error occurrences for a fault:
hb faults notices --project-id 12345 --id 67890hb faults notices --project-id 12345 --id 67890 --limit 10Required flags:
--project-id— Project ID--id— Fault ID
Optional flags:
--limit— Maximum results (default: 25, max: 25)-o, --output— Output format:tableorjson(default:table)
Get fault counts
Section titled “Get fault counts”Get aggregated fault counts for a project:
hb faults counts --project-id 12345Required flags:
--project-id— Project ID
Optional flags:
-o, --output— Output format:textorjson(default:text)
List affected users
Section titled “List affected users”View users affected by a specific fault:
hb faults affected-users --project-id 12345 --id 67890
# Search for a specific userhb faults affected-users --project-id 12345 --id 67890 --query "user@example.com"Required flags:
--project-id— Project ID--id— Fault ID
Optional flags:
-q, --query— Search query to filter users-o, --output— Output format:tableorjson(default:table)