defineConfig to define core settings for your entire Checkly CLI project. This is typically configured in your checkly.config.ts file and provides global defaults for all CLI-powered checks and monitors.
Configuration
Core Project Options
Friendly name for your project that will be displayed in the Checkly dashboard and used for identification.Usage:Use cases: Dashboard identification, project organization, team coordination.
Unique identifier for this project that should remain stable across deployments. Changing this will cause Checkly to treat it as a new project.Usage:Use cases: Project identification, deployment tracking, configuration persistence.
Optional URL to a Git repository for documentation and team collaboration purposes in Checkly UI.Usage:Use cases: Documentation linking, team collaboration, source code reference.
Defaults for CLI commands like Properties:
checkly test and checkly trigger.Usage:Use cases: Local testing defaults, CI/CD configuration, development workflow.
Check and Monitor Configuration
Thechecks property allows you to set global defaults for all checks and monitors in your project. Individual checks and groups can override these settings.
Top-level defaults for all checks in this project. Individual checks and groups can override these settings.Usage:Properties:
General Settings for All Check and Monitor Types
Define global defaults for all checks and monitors in this project. Individual checks and groups can override these settings.Whether the checks and monitors are enabled and will run according to its schedule.Usage:
Default alert channels for all checks and monitors.Usage:
Glob pattern where the CLI looks for files containing Check constructs, i.e. all
.check.ts files.Usage:Environment variables available to the check script and monitors.Usage:
Default frequency at which the checks and monitors are executed.Usage:Available frequencies:
EVERY_1M, EVERY_2M, EVERY_5M, EVERY_10M, EVERY_15M, EVERY_30M, EVERY_1H, EVERY_2H, EVERY_3H, EVERY_6H, EVERY_12H, EVERY_24HDirectories to ignore when looking for check files.Usage:
Array of public location codes where the URL monitor should run from. Multiple locations provide geographic coverage.
Determine if any notifications will be sent out when a check fails and/or recovers. Muting checks is useful for temporarily silencing alerts during maintenance.Usage:
Global configuration options for the Playwright Test Runner use in Browser Checks and MultiStep Checks. This allows you to configure your Playwright-powered checks in a single place, instead of having to repeat the same configuration for each test file.Usage:
Private Locations to run your monitors and checks from.Usage:
checks.retryStrategy
Set a retry policy for your checks and monitors. Use
RetryStrategyBuilder to create a retry policy.Usage:The runtime version used to execute checks and monitors.Usage:
The tags assigned to the checks and monitors.Usage:
Default Settings for Complex Check Types
If your project doesn’t require specific configuration and you want to quickly transform your Playwright end-to-end tests into Browser Checks, use the
browserChecks.testMatch property.Properties:Example:
If your project doesn’t require specific configuration and you want to quickly transform your Playwright API tests into Multistep Checks, use the
multiStepChecks.testMatch property.Properties:Example:
Usage:Parameters:
- Playwright Check Suite
- General Options
Examples
- Simple Website Monitoring
- Complex Application
- API-First Project