Skip to main content
Use the 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

string
required
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.
string
required
Unique identifier for this project that should remain stable across deployments. Changing this will cause Checkly to treat it as a new project.Usage:
The logicalId should remain stable across deployments. Changing it will cause Checkly to treat it as a new project, losing historical data and configurations.
Use cases: Project identification, deployment tracking, configuration persistence.
string
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.
object
Defaults for CLI commands like checkly test and checkly trigger.Usage:
Properties:Use cases: Local testing defaults, CI/CD configuration, development workflow.

Check and Monitor Configuration

The checks property allows you to set global defaults for all checks and monitors in your project. Individual checks and groups can override these settings.
object
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.
boolean
default:"true"
Whether the checks and monitors are enabled and will run according to its schedule.Usage:
AlertChannel[]
Default alert channels for all checks and monitors.Usage:
string
Glob pattern where the CLI looks for files containing Check constructs, i.e. all .check.ts files.Usage:
We recommend to establish a clear file convention like *.check.ts to easily identify files containing Checkly constructs.
object[]
Environment variables available to the check script and monitors.Usage:
Frequency
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_24H
Use UrlMonitor or TcpMonitor construct for high-frequency checks running up to every ten seconds.
string[]
Directories to ignore when looking for check files.Usage:
string[]
default:"[]"
Array of public location codes where the URL monitor should run from. Multiple locations provide geographic coverage.
boolean
default:"false"
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:
object
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:
Learn more about the supported Playwright configuration options in the Browser Check Playwright documentation.
Browser Checks don’t support the projects, globalSetup, globalTeardown and storageState options. Check Playwright Check Suites for full Playwright support.
string
Playwright config path to be used during Playwright Check Suite bundling and config parsing.Usage:
PrivateLocation
Private Locations to run your monitors and checks from.Usage:
Set a retry policy for your checks and monitors. Use RetryStrategyBuilder to create a retry policy.Usage:
string
The runtime version used to execute checks and monitors.Usage:
string[]
The tags assigned to the checks and monitors.Usage:

Default Settings for Complex Check Types

object
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:
The checks.browserChecks property gives your monitoring setup a head start by turning your existing end-to-end tests into monitors. For more advanced use cases and individual configuration use the BrowserCheck construct.
object
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:
The checks.multiStepChecks property gives your monitoring setup a head start by turning your existing API tests into monitors. For more advanced use cases and individual configuration use the MultistepCheck construct.
object[]
Usage:
Parameters:
The checks.playwrightChecks property gives your monitoring setup a head start by turning your existing Playwright test suite into synthetic monitoring. For more advanced use cases and individual configuration use the PlaywrightCheck construct.

Examples