Skip to main content
Available since CLI v8.4.0.
The checkly test-sessions command lets you inspect recorded test sessions from the terminal. Use it to list recent sessions, review a session, wait for a running session to finish, or inspect a test session error group before starting root cause analysis.
Before using checkly test-sessions, ensure you have:
  • Checkly CLI installed
  • Valid Checkly account authentication (run npx checkly login if needed)
  • A recorded test session ID
For additional setup information, see CLI overview.

Usage

Terminal

Subcommands

SubcommandDescription
listList recorded test sessions.
getGet details of a recorded test session.

checkly test-sessions list

The checkly test-sessions list command is only available since CLI v8.5.0.
List recorded test sessions for the currently selected account. Use filters to narrow by status, branch, user, or provider, and cursor pagination to page through results. Usage:
Terminal
Options:
OptionRequiredDescription
--limit, -l-Number of test sessions to return (1-100). Default: 20.
--cursor-Cursor for the next page (from previous output).
--from-Only include test sessions created at or after this ISO date or Unix timestamp.
--to-Only include test sessions created before this ISO date or Unix timestamp.
--status-Filter by status: running, failed, passed, or cancelled. Can be specified multiple times.
--branch-Filter by Git branch name. Can be specified multiple times.
--user-Filter by commit owner or invoking user ID. Can be specified multiple times.
--no-users-Include sessions with no commit owner and no invoking user.
--provider-Filter by provider: github, vercel, api, trigger, or pw_reporter. Can be specified multiple times.
--search, -s-Search test session text fields (3-200 characters).
--error-group-Filter by test-session error group ID.
--output, -o-Output format: table, json, or md. Default: table.

List Options

--limit, -l
number
default:"20"
Number of test sessions to return, between 1 and 100.Usage:
Terminal
--cursor
string
Cursor for paginating through results. Use the cursor value from the previous output, or the next-page command shown in table output.Usage:
Terminal
--from
string
Only include test sessions created at or after this point in time. Accepts an ISO date (such as 2026-06-01) or a Unix timestamp in seconds.Usage:
Terminal
--to
string
Only include test sessions created before this point in time. Accepts an ISO date or a Unix timestamp in seconds.Usage:
Terminal
--status
string
Filter sessions by status. Available values: running, failed, passed, cancelled. Specify multiple times to match more than one status.Usage:
Terminal
--branch
string
Filter sessions by Git branch name. Specify multiple times to match more than one branch.Usage:
Terminal
--user
string
Filter sessions by commit owner or invoking user ID. Specify multiple times to match more than one user.Usage:
Terminal
--no-users
boolean
Include sessions that have no commit owner and no invoking user.Usage:
Terminal
--provider
string
Filter sessions by the provider that triggered them. Available values: github, vercel, api, trigger, pw_reporter. Specify multiple times to match more than one provider.Usage:
Terminal
--search, -s
string
Search test session text fields. The query must be between 3 and 200 characters.Usage:
Terminal
--error-group
string
Filter sessions by a test-session error group ID.Usage:
Terminal
--output, -o
string
default:"table"
Set the output format. Use json for programmatic access or md for markdown.Usage:
Terminal

List Examples

Terminal

checkly test-sessions get

Get details of a recorded test session, including result error groups for RCA. Usage:
Terminal
Arguments:
ArgumentDescription
idThe ID of the test session to retrieve.
Options:
OptionRequiredDescription
--result, -r-Show details for a specific test session result ID.
--error-group-Show details for a test session error group ID from this session.
--error-groups-limit-Number of error group IDs to show in the session summary. Default: 5.
--full-error-Print the complete raw error when showing a test session error group.
--watch, -w-Watch a running test session until it completes before rendering.
--output, -o-Output format: detail, json, or md. Default: detail.

Get Options

--result, -r
string
Available in CLI v8.7.0+.
Drill into a specific test session result by its result ID. Shows detailed information for that result, including logs and timing data.Usage:
Terminal
--error-group
string
Show details for a test session error group from the selected session. Use this after the session summary shows one or more error group IDs.Usage:
Terminal
--error-groups-limit
number
default:"5"
Set how many error group IDs to show in the session summary.Usage:
Terminal
--full-error
boolean
default:"false"
Print the complete raw error when you inspect a test session error group.Usage:
Terminal
--watch, -w
boolean
default:"false"
Available in CLI v8.5.0+.
Watch a running test session until it reaches a final state before rendering the result.Usage:
Terminal
--output, -o
string
default:"detail"
Set the output format. Use json for programmatic access or md for markdown.Usage:
Terminal

Get Examples

Terminal