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.
Prerequisites
Prerequisites
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 loginif needed) - A
checkly.config.tsorcheckly.config.jsconfiguration file
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:Examples:
Terminal
Terminal
string
Path to a dotenv file containing environment variables.Usage:Examples:The dotenv file should contain KEY=value pairs, one per line.
Terminal
Terminal
string
The location to run the checks at.Usage:Choose from available Checkly public locations like us-east-1, eu-west-1, ap-southeast-1, etc.
Terminal
string
The private location to run checks at.Usage:Examples:Private locations must be configured in your Checkly account before use.
Terminal
Terminal
Filter checks using tags. Checks run if they contain all specified tags in a single —tags flag. Multiple —tags flags create OR conditions.Usage:Examples:Tags are comma-separated within a single flag for AND logic, multiple flags for OR logic.
Terminal
Terminal
string
A name to use when storing results in Checkly with
--record.Usage:Terminal
string
Custom reporters for test output formatting.Usage:Examples:Available options:
Terminal
Terminal
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:Examples:Enabled by default. Use
Terminal
Terminal
--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:Examples:Records provide full visibility including logs, traces, and videos for debugging failed checks.
Terminal
Terminal
number
default:"0"
How many times to retry a failed check run.Usage:Examples:Default: 0, Maximum: 3. Useful for handling transient failures.
Terminal
Terminal
number
default:"600"
Timeout in seconds to wait for checks to complete.Usage:Examples:Default: 600 seconds (10 minutes). Adjust based on your longest-running checks.
Terminal
Terminal
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
Related Commands
checkly deploy- Deploy your Checkly configurationcheckly test- Test your setup before deployment