incidents command targets one application, identified either by name and environment (--app "MyApp" --environment production) or by ID (--app-id <APP_ID>, the long hexadecimal app ID from appsignal-cli apps list). The --environment flag is only needed when several apps share a name. Add --org to override your default organization. See Apps and organizations for how apps are identified.
List incidents
To list recent incidents of all types for an app:Shell
List by type
Three commands narrow the results to a single incident type:Shell
Filter and search
The list commands share a set of filters:incidents list, list-exceptions, and list-performance also accept:
Exception and performance incidents support a text search over the incident name or message with
--query:
Shell
web namespace:
Shell
The list commands return recent incidents, so older ones may not appear even when they’re still open. To open a specific incident regardless of age, use
incidents show with its number.Show an incident
To see the full details of a single incident, pass its number:Shell
show also lists the error causes from the incident’s sample data. Sometimes one error wraps another, such as a timeout that surfaces as a generic request error. When that happens, the underlying causes appear next to the top-level exception, so you can find the root cause without opening a sample in the web UI.
Update an incident
Update an incident’s state, severity, assignees, or description by number:Shell
To change several incidents at once, pass a comma-separated list of numbers. Bulk updates currently support
--state only:
Shell
Assign an incident
To assign an incident to yourself, use--assign-me. It needs no user ID:
Shell
--assign, comma-separated. A user ID is a long hexadecimal string. Find names and IDs with apps resources users, which lists each user’s name, ID, and email:
Shell
--assign:
Shell
--unassign the same way.
Add a note
To record what you found on an incident:Shell
JSON output
Like every command, the incidents commands accept the global--output json (or --format json) flag, which returns machine-readable output for scripts and AI agents:
Shell
incidents show:
Shell