Available since CLI v8.5.0.
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.
Prerequisites
Prerequisites
Before using
checkly alert-channels, ensure you have:- Checkly CLI installed
- Valid Checkly account authentication (run
npx checkly loginif needed)
Usage
Terminal
Subcommands
| Subcommand | Description |
|---|---|
list | List all alert channels in your account. |
get | Get details of an alert channel. |
logs | List 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
| Option | Required | Description |
|---|---|---|
--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
Set the number of alert channels to return per page, between 1 and 100.Usage:
Terminal
Select the page of alert channels to return.Usage:
Terminal
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
| Argument | Description |
|---|---|
id | The numeric ID of the alert channel to retrieve. |
| Option | Required | Description |
|---|---|---|
--output, -o | - | Output format: detail, json, or md. Default: detail. |
Get Options
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
| Argument | Description |
|---|---|
id | The numeric ID of the alert channel whose logs you want to retrieve. |
| Option | Required | Description |
|---|---|---|
--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
Set the number of notification logs to return per page, between 1 and 100.Usage:
Terminal
Select the page of notification logs to return.Usage:
Terminal
Set the inclusive start of the log window as a Unix timestamp.Usage:
Terminal
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
Filter the logs to failed notification deliveries.Usage:
Terminal
Set the output format. Use
json for programmatic access or md for markdown.Usage:Terminal
Logs Examples
Terminal
JSON pagination
Thelist and logs commands return JSON in a stable pagination envelope when you use --output=json:
Related Commands
checkly checks- List and inspect checkscheckly api- Make authenticated Checkly API requestscheckly whoami- Display current account information