Skip to main content
The checkly trigger command executes checks that are already deployed in your Checkly account. Unlike the test command, trigger works with any checks in your account regardless of how they were created - via CLI constructs, the web UI, or Terraform.
Before using , ensure you have:
  • An initialized Checkly CLI project
  • At least one check or resource defined in your project
  • Valid Checkly account authentication (run npx checkly login if needed)
  • A checkly.config.ts or checkly.config.js configuration file
For additional setup information, see CLI overview.

Usage

The basic command triggers all checks in your account that are already deployed.
Terminal

Command Options

string
Specify a configuration file to use instead of the checkly.config.ts or checkly.config.js in the current directory.Usage:
Terminal
Environment variables to be passed to the check run. Multiple values can be passed and passed variables overwrite any existing variables stored in your Checkly account.Usage:
Terminal
Examples:
Terminal
string
Path to a dotenv file containing environment variables.Usage:
Terminal
Examples:
Terminal
The dotenv file should contain KEY=value pairs, one per line.
string
The location to run the checks at.Usage:
Terminal
Choose from available Checkly public locations like us-east-1, eu-west-1, ap-southeast-1, etc.
string
The private location to run checks at.Usage:
Terminal
Examples:
Terminal
Private locations must be configured in your Checkly account before use.
Filter checks using tags. Checks run if they contain all specified tags in a single —tags flag. Multiple —tags flags create OR conditions.Usage:
Terminal
Examples:
Terminal
Tags are comma-separated within a single flag for AND logic, multiple flags for OR logic.
string
A name to use when storing results in Checkly with --record.Usage:
Terminal
string
Custom reporters for test output formatting.Usage:
Terminal
Examples:
Terminal
Available options: list, dot, ci, github, json. Each provides different output formatting.
boolean
Always show the full logs of the checks.Usage:
Terminal
boolean
Exit with a failing status code when there are no matching tests.Usage:
Terminal
Examples:
Terminal
Enabled by default. Use --no-fail-on-no-matching to allow zero matches without failure.
boolean
Record check results in Checkly as a test session with full logs, traces and videos.Usage:
Terminal
Examples:
Terminal
Records provide full visibility including logs, traces, and videos for debugging failed checks.
number
default:"0"
How many times to retry a failed check run.Usage:
Terminal
Examples:
Terminal
Default: 0, Maximum: 3. Useful for handling transient failures.
number
default:"600"
Timeout in seconds to wait for checks to complete.Usage:
Terminal
Examples:
Terminal
Default: 600 seconds (10 minutes). Adjust based on your longest-running checks.

Key Differences from checkly test

npx checkly test and npx checkly trigger serve different purposes in the Checkly ecosystem. Here’s a comparison of their key features:

Use Cases

Pre-deployment Validation

Run your deployed checks before promoting code to production:
Terminal
If your production deployment includes monitoring changes and updates, use npx checkly test to validate your preview environment with the updated monitoring configuration.