Skip to main content
Available since CLI v8.5.0.
The checkly alert-channels commands let you inspect the alert channels in your account and troubleshoot notification delivery from the terminal. These commands are read-only and don’t change your alert channel configuration.
Before using checkly alert-channels, ensure you have:
  • Checkly CLI installed
  • Valid Checkly account authentication (run npx checkly login if needed)
For additional setup information, see CLI overview.

Usage

Terminal

Subcommands

SubcommandDescription
listList all alert channels in your account.
getGet details of an alert channel.
logsList notification logs for an alert channel.

checkly alert-channels list

List the alert channels in your account. The default table includes each channel’s ID, type, name, subscription count, and creation date. Usage:
Terminal
Options:
OptionRequiredDescription
--limit, -l-Number of alert channels to return (1-100). Default: 25.
--page, -p-Page number. Default: 1.
--output, -o-Output format: table, json, or md. Default: table.

List Options

--limit, -l
number
default:"25"
Set the number of alert channels to return per page, between 1 and 100.Usage:
Terminal
--page, -p
number
default:"1"
Select the page of alert channels to return.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 alert-channels get

Get the configuration and subscriptions for a specific alert channel. Usage:
Terminal
Arguments:
ArgumentDescription
idThe numeric ID of the alert channel to retrieve.
Options:
OptionRequiredDescription
--output, -o-Output format: detail, json, or md. Default: detail.

Get Options

--output, -o
string
default:"detail"
Set the output format. Use json for programmatic access or md for markdown.Usage:
Terminal

Get Examples

Terminal

checkly alert-channels logs

List notification log entries for a specific alert channel. Use this command to identify failed deliveries or inspect notifications from a specific time window. Usage:
Terminal
Arguments:
ArgumentDescription
idThe numeric ID of the alert channel whose logs you want to retrieve.
Options:
OptionRequiredDescription
--limit, -l-Number of logs to return (1-100). Default: 25.
--page, -p-Page number. Default: 1.
--from-Start of the log window as a Unix timestamp, inclusive.
--to-End of the log window as a Unix timestamp, exclusive.
--status, -s-Filter logs by status. Supported value: failed.
--output, -o-Output format: table, json, or md. Default: table.
If you omit --from and --to, the command returns logs from the preceding 24 hours. An explicit time window can span at most 24 hours.

Logs Options

--limit, -l
number
default:"25"
Set the number of notification logs to return per page, between 1 and 100.Usage:
Terminal
--page, -p
number
default:"1"
Select the page of notification logs to return.Usage:
Terminal
--from
number
Set the inclusive start of the log window as a Unix timestamp.Usage:
Terminal
--to
number
Set the exclusive end of the log window as a Unix timestamp. The interval between --from and --to can’t exceed 24 hours.Usage:
Terminal
--status, -s
string
Filter the logs to failed notification deliveries.Usage:
Terminal
--output, -o
string
default:"table"
Set the output format. Use json for programmatic access or md for markdown.Usage:
Terminal

Logs Examples

Terminal

JSON pagination

The list and logs commands return JSON in a stable pagination envelope when you use --output=json: