Skip to main content

Documentation Index

Fetch the complete documentation index at: https://checklyhq.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Available since CLI v8.4.0.
The checkly test-sessions command lets you inspect recorded test sessions from the terminal. Use it to 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
npx checkly test-sessions <subcommand> [arguments] [options]

Subcommands

SubcommandDescription
getGet details of a recorded test session.

checkly test-sessions get

Get details of a recorded test session, including result error groups for RCA. Usage:
Terminal
npx checkly test-sessions get <id> [options]
Arguments:
ArgumentDescription
idThe ID of the test session to retrieve.
Options:
OptionRequiredDescription
--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

--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
npx checkly test-sessions get <id> --error-group=<error-group-id>
--error-groups-limit
number
default:"5"
Set how many error group IDs to show in the session summary.Usage:
Terminal
npx checkly test-sessions get <id> --error-groups-limit=10
--full-error
boolean
default:"false"
Print the complete raw error when you inspect a test session error group.Usage:
Terminal
npx checkly test-sessions get <id> --error-group=<error-group-id> --full-error
--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
npx checkly test-sessions get <id> --watch
npx checkly test-sessions get <id> -w
--output, -o
string
default:"detail"
Set the output format. Use json for programmatic access or md for markdown.Usage:
Terminal
npx checkly test-sessions get <id> --output=json
npx checkly test-sessions get <id> -o md

Get Examples

Terminal
# View a recorded test session
npx checkly test-sessions get <id>

# Wait for a running test session to complete
npx checkly test-sessions get <id> --watch

# Inspect a test session error group
npx checkly test-sessions get <id> --error-group=<error-group-id>

# Get the session as JSON
npx checkly test-sessions get <id> --output=json