# Project Construct - Checkly Docs

> Learn how to configure projects with the Checkly CLI.

Source: https://www.checklyhq.com/docs/constructs/project/

---

Project & Configuration

# Project Construct

Learn how to configure projects with the Checkly CLI.

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.

```
import { defineConfig } from 'checkly'
import { Frequency } from 'checkly/constructs'

export default defineConfig({
projectName: 'Website Monitoring',
logicalId: 'website-monitoring-1',
repoUrl: 'https://github.com/acme/website',
checks: {
activated: true,
muted: false,
runtimeId: '2025.04',
frequency: Frequency.EVERY_5M,
locations: ['us-east-1', 'eu-west-1'],
tags: ['website', 'api']
}
})
```

```
import { defineConfig } from "checkly"
import { Frequency } from "checkly/constructs"

export default defineConfig({
projectName: "Production Monitoring Suite",
logicalId: "prod-monitoring-2025",
repoUrl: "https://github.com/acme/monitoring",
checks: {
activated: true,
muted: false,
runtimeId: "2025.04",
frequency: Frequency.EVERY_10M,
locations: ["us-east-1", "eu-west-1", "ap-southeast-1"],
tags: ["production", "critical"],
checkMatch: "**/__checks__/*.check.ts",
ignoreDirectoriesMatch: ["node_modules/**", "dist/**"],
playwrightConfig: {
use: {
baseURL: "https://app.example.com",
},
},
browserChecks: {
frequency: Frequency.EVERY_30M,
testMatch: "**/__tests__/*.spec.ts",
},
},
cli: {
runLocation: "eu-west-1",
privateRunLocation: "private-dc1",
retries: 2,
},
})
```

## Configuration

Parameter Type Required Default Description

`projectName` `string` ✅ - Friendly name for your project

`logicalId` `string` ✅ - Unique identifier for this project (should be stable)

`repoUrl` `string` ❌ - Optional URL to a Git repository

`checks` `object` ❌ - Top-level defaults for all checks in this project

`cli` `object` ❌ - Defaults for CLI commands

`bundle` `object` ❌ - Dependency embedding and pruning for Playwright Check Suite code bundles. See [Internal Registries](https://www.checklyhq.com/docs/detect/synthetic-monitoring/playwright-checks/internal-registries), and [Speed up installs](https://www.checklyhq.com/docs/detect/synthetic-monitoring/playwright-checks/dependencies#speed-up-installs) for pruning to make installs faster

`runner` `object` ❌ - Settings applied on Checkly runners for Playwright Check Suite installs: [registry routing](https://www.checklyhq.com/docs/detect/synthetic-monitoring/playwright-checks/internal-registries#route-runner-installs-to-other-registries) and the [dependency cache version](https://www.checklyhq.com/docs/detect/synthetic-monitoring/playwright-checks/dependencies#force-a-reinstall)

### Core Project Options

string

required

Friendly name for your project that will be displayed in the Checkly dashboard and used for identification. **Usage:**

```
export default defineConfig({
projectName: 'Website Monitoring',
/* More options... */
})
```

**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:**

```
export default defineConfig({
logicalId: 'website-monitoring-prod',
/* More options... */
})
```

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:**

```
export default defineConfig({
repoUrl: 'https://github.com/acme/website',
/* More options... */
})
```

**Use cases**: Documentation linking, team collaboration, source code reference.

object

Defaults for CLI commands like `checkly test` and `checkly trigger`. **Usage:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
cli: {
runLocation: "us-east-1",
retries: 2,
},
})
```

**Properties:** Parameter Type Required Default Description

`runLocation` `string` ❌ `eu-central-1` Default location for `checkly test` and `checkly trigger`

`privateRunLocation` `string` ❌ - Default private location for CLI commands

`retries` `number` ❌ `0` Default retry count for failing checks (max 3)

`maxFailures` `number` ❌ - Stop `checkly test` and `checkly trigger` once this many checks have failed. The `--max-failures` flag overrides it. See [`checkly test`](https://www.checklyhq.com/docs/cli/checkly-test)

**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:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
repoUrl: "https://github.com/acme/website",
checks: {
activated: true,
muted: false,
runtimeId: "2025.04",
frequency: Frequency.EVERY_5M,
locations: ["us-east-1", "eu-west-1"],
tags: ["website", "api"],
/* More options... */
},
})
```

**Properties:** Parameter Type Required Default Description

`activated` `boolean` ❌ `true` Whether checks are enabled by default

`alertChannels` `Array ` ❌ `[]` Default alert channels for all checks

`checkMatch` `string | string[]` ❌ - Glob pattern or array of glob patterns to find check construct files

`environmentVariables` `EnvironmentVariable[]` ❌ `[]` Default environment variables for all checks

`frequency` `Frequency` ❌ - Default frequency for all checks

`ignoreDirectoriesMatch` `string[]` - - Glob patterns for directories to ignore

`locations` `string[]` ❌ `[]` Default public locations for all checks

`muted` `boolean` ❌ `false` Whether alert notifications are muted by default

`playwrightConfig` `object` ❌ - Subset of Playwright configuration options

`playwrightConfigPath` `string` ❌ - Path to the Playwright configuration file

`privateLocations` `string[]` ❌ `[]` Default private locations for all checks

`retryStrategy` `object` ❌ - Control the retry behavior for failed checks

`runtimeId` `string` ❌ - Default runtime ID for all checks

`shouldFail` `boolean` ❌ `false` Whether the behavior of when a check/alert is considered to fail is inverted. Only applies to API checks, URL monitors and TCP monitors.

`tags` `string[]` ❌ `[]` Default tags applied to all checks

`browserChecks` `object` ❌ - Default settings for Browser checks

`multiStepChecks` `object` ❌ - Default settings for Multistep checks

`include` `string | string[]` ❌ - Extra files to include when bundling the Playwright Check Suites defined in `playwrightChecks`

`playwrightChecks` `object[]` ❌ - Playwright Check Suites to create from your Playwright configuration

### 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:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
activated: true,
},
})
```

AlertChannel[]

Default alert channels for all checks and monitors. **Usage:**

```
const smsAlertChannel = new SmsAlertChannel("sms-alert-channel", {
phoneNumber: "+1234567890",
})

export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
alertChannels: [smsAlertChannel],
},
})
```

string | string[]

A glob pattern, or an array of glob patterns, where the CLI looks for files containing check constructs, for example all `.check.ts` files. Use an array to match several file extensions or directories. **Usage:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
// Match a single glob
checkMatch: "**/*.check.ts",
// Or match multiple globs at once
// checkMatch: ["**/*.check.ts", "**/*.check.js"],
},
})
```

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:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
environmentVariables: [
{
key: "BASE_URL",
value: "https://example.com",
},
],
},
})
```

Frequency

Default frequency at which the checks and monitors are executed. **Usage:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
frequency: Frequency.EVERY_5M,
},
})
```

**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`](https://www.checklyhq.com/docs/constructs/url-monitor) or [`TcpMonitor`](https://www.checklyhq.com/docs/constructs/tcp-monitor) construct for high-frequency checks running up to every ten seconds.

string[]

Directories to ignore when looking for check files. **Usage:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
checkMatch: ["**/**/*.check.ts"],
ignoreDirectoriesMatch: ["api/**"],
},
})
```

string[]

default: "[]"

Array of public location codes where the URL monitor should run from. Multiple locations provide geographic coverage.

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
locations: ["us-east-1", "eu-west-1"],
},
})
```

Find a list of [all public locations in the general documentation](https://www.checklyhq.com/docs/concepts/locations).

Give every check a location: set `locations` or `privateLocations` on the check or its group, or set a default with `checks.locations` or `checks.privateLocations`. A check without any location runs in a location chosen by Checkly, and since CLI version 10, `checkly deploy` and `checkly validate` warn about it. Heartbeat monitors and test-only checks don’t need a location.

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:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
muted: true,
},
})
```

object

Global configuration options for the Playwright Test Runner use in [Browser checks](https://www.checklyhq.com/docs/detect/synthetic-monitoring/browser-checks/overview) and [Multistep checks](https://www.checklyhq.com/docs/detect/synthetic-monitoring/multistep-checks/overview). 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:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
playwrightConfig: {
timeout: 1234,
use: {
baseURL: 'https://www.checklyhq.com',
isMobile: true,
},
expect: {
toHaveScreenshot: {
maxDiffPixels: 10,
}
}
},
},
})
```

Learn more about the supported Playwright configuration options in [the Browser check Playwright documentation](https://www.checklyhq.com/docs/detect/synthetic-monitoring/browser-checks/playwright-support).

Browser checks don’t support the `projects`, `globalSetup`, `globalTeardown` and `storageState` options. Check [Playwright Check Suites](https://www.checklyhq.com/docs/detect/synthetic-monitoring/playwright-checks/overview) for full Playwright support.

string

Playwright config path to be used during [Playwright Check Suite](https://www.checklyhq.com/docs/detect/synthetic-monitoring/playwright-checks/overview) bundling and config parsing. **Usage:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
playwrightConfigPath: "./playwright.config.ts",
},
})
```

PrivateLocation

Private locations to run your monitors and checks from. **Usage:**

```
const datacenterLocation = new PrivateLocation("datacenter-east-1", {
name: "East Coast Datacenter",
icon: "building",
slugName: "datacenter-east-1",
proxyUrl: "http://proxy.datacenter.local:8080",
})

export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
privateLocations: [datacenterLocation],
},
})
```

Learn more about [private locations in the general documentation](https://www.checklyhq.com/docs/platform/private-locations/overview).

Set a retry policy for your checks and monitors. [Use `RetryStrategyBuilder`](https://www.checklyhq.com/docs/constructs/retry-strategy) to create a retry policy. Without one, each check, monitor and group uses the [default for its type](https://www.checklyhq.com/docs/constructs/retry-strategy#default-retry-strategy). **Usage:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
retryStrategy: RetryStrategyBuilder.linearStrategy({
baseBackoffSeconds: 30,
maxRetries: 4,
sameRegion: false,
}),
},
})
```

Learn more about [alerting and retries in the general documentation](https://www.checklyhq.com/docs/communicate/alerts/retries).

string

The runtime version used to execute checks and monitors. **Usage:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
runtimeId: '2025.04',
},
})
```

Learn more about [Checkly runtimes in the general documentation](https://www.checklyhq.com/docs/platform/runtimes/overview).

string[]

The tags assigned to the checks and monitors. **Usage:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
tags: ["website", "frontend"],
},
})
```

### 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:** Parameter Type Required Default Description

`testMatch` `string | string[]` ❌ - Glob pattern for Playwright tests used as Browser checks

**Example:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
browserChecks: {
testMatch: ["**/*.spec.ts"],
},
},
})
```

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](https://www.checklyhq.com/docs/constructs/browser-check).

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:** Parameter Type Required Default Description

`testMatch` `string | string[]` ❌ - Glob pattern for Playwright tests used as Multistep checks

**Example:**

```
export default defineConfig({
projectName: "API Monitoring",
logicalId: "api-monitoring-1",
checks: {
multiStepChecks: {
testMatch: ["**/*.spec.ts"],
},
},
})
```

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](https://www.checklyhq.com/docs/constructs/multistep-check).

object[]

**Usage:**

```
export default defineConfig({
projectName: "Website Monitoring",
logicalId: "website-monitoring-1",
checks: {
playwrightChecks: [
{
name: "critical-tagged",
logicalId: "critical-tagged",
pwTags: "critical",
pwProjects: "chromium",
frequency: Frequency.EVERY_1M,
locations: ["us-east-1", "eu-west-1"],
},
],
},
})
```

**Parameters:**
- Playwright Check Suite
- General Options

Parameter Type Required Default Description

`playwrightConfigPath` `string` ❌ `checks.playwrightConfigPath` Path to the Playwright configuration file. Required if `checks.playwrightConfigPath` isn’t set

`installCommand` `string` ❌ - Command to install dependencies before running tests

`testCommand` `string` ❌ - Command to execute Playwright tests

`pwProjects` `string` | `string[]` ❌ - Projects to run from your configuration

`pwTags` `string` | `string[]` ❌ - Tags to filter tests using Playwright’s grep functionality

`group` `CheckGroup` ❌ - The CheckGroup this check suite belongs to

`engine` `Engine` ❌ - JavaScript engine and version used to run the check suite. See [`engine`](https://www.checklyhq.com/docs/constructs/playwright-check#param-engine)

Checkly CLI version 10 and later no longer include the deprecated `groupName` option. Set `group` to the `CheckGroup` instead.

Property Type Required Default Description

`name` `string` ✅ - Friendly name for your check

`logicalId` `string` ✅ - Unique identifier for your check suite

`activated` `boolean` ❌ `true` Whether the check suite is enabled

`alertChannels` `AlertChannel[]` ❌ `[]` Array of AlertChannel objects for notifications

`alertEscalationPolicy` `AlertEscalationPolicy` ❌ - Advanced alert settings

`environmentVariables` `object[]` ❌ `[]` Check-level environment variables

`frequency` `Frequency` ❌ - How often to run your check suite

`locations` `string[]` ❌ `[]` Array of public location codes

`muted` `boolean` ❌ `false` Whether alert notifications are muted

`privateLocations` `string[]` ❌ `[]` Array of private location slugs

`runParallel` `boolean` ❌ `false` Run check suites in parallel or round-robin

`tags` `string[]` ❌ `[]` Array of tags to organize check suites

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](https://www.checklyhq.com/docs/constructs/playwright-check).

## Examples

- Simple Website Monitoring
- Complex Application
- API-First Project

```
export default defineConfig({
projectName: "Acme Website",
logicalId: "acme-website-prod",
repoUrl: "https://github.com/acme/website",
checks: {
activated: true,
frequency: Frequency.EVERY_5M,
locations: ["us-east-1", "eu-west-1"],
tags: ["website"],
checkMatch: "monitoring/**/*.check.ts",
},
})
```

```
import { defineConfig } from 'checkly'
import { Frequency } from 'checkly/constructs'

export default defineConfig({
projectName: "E-commerce Platform Monitoring",
logicalId: "ecommerce-platform-2025",
repoUrl: "https://github.com/acme/ecommerce",
checks: {
activated: true,
muted: false,
runtimeId: "2025.04",
frequency: Frequency.EVERY_10M,
locations: ["us-east-1", "eu-west-1"],
tags: ["ecommerce", "critical"],
checkMatch: "**/*.check.ts",
ignoreDirectoriesMatch: ["dist/**", "coverage/**"],
playwrightConfig: {
use: {
baseURL: "https://shop.acme.com",
},
},
browserChecks: {
frequency: Frequency.EVERY_30M,
testMatch: "e2e/**/*.spec.ts",
},
},
cli: {
runLocation: "us-east-1",
retries: 2,
},
})
```

```
import { defineConfig } from 'checkly'
import { Frequency } from 'checkly/constructs'

export default defineConfig({
projectName: "API Monitoring Suite",
logicalId: "api-monitoring-v2",
repoUrl: "https://github.com/acme/api-monitoring",
checks: {
activated: true,
muted: false,
runtimeId: "2025.04",
frequency: Frequency.EVERY_2M,
locations: ["us-east-1", "eu-west-1", "ap-southeast-1"],
tags: ["api", "microservices"],
checkMatch: "checks/**/*.api.check.ts",
ignoreDirectoriesMatch: ["tests/**", "docs/**"],
},
cli: {
runLocation: "us-east-1",
retries: 3,
},
})
```

Was this page helpful?

[Suggest edits](https://github.com/checkly/docs/edit/main/constructs/project.mdx)[Raise issue](https://github.com/checkly/docs/issues/new?title=Issue%20on%20docs&body=Path:%20/constructs/project)

[MaintenanceWindow Construct Previous](https://www.checklyhq.com/docs/constructs/maintenance-window)[CheckGroupV2 Construct Next](https://www.checklyhq.com/docs/constructs/check-group-v2)

[x](https://x.com/checklyhq)[github](https://github.com/checkly)[linkedin](https://linkedin.com/company/checkly)

[Powered by This documentation is built and hosted on Mintlify, a developer documentation platform](https://www.mintlify.com/?utm_campaign=poweredBy&utm_medium=referral&utm_source=checkly-422f444a)
