Skip to main content
Get started with Checkly constructs by building your first monitoring setup using the CLI.
  • Node.js 18+ installed
  • A Checkly account
Use this guide to manually set up your Checkly configuration. Follow the quickstart guide and npm create checkly for an automatic setup.

Installation

Create a new directory and initialize your monitoring project:
Terminal
Install the Checkly CLI.
Terminal
Recommended: Install jiti to use TypeScript for your Checkly monitoring setup.
Terminal

Project Setup

Create a checkly.config file with basic settings:
checkly.config.ts
Learn more about the general Checkly settings at Project and Configuration.

Your First Checkly CLI Construct

Create a monitoring setup using monitoring as code constructs. First, create the directory structure:
Terminal
Create src/__checks__/website-monitoring.check.ts:
src/__checks__/website-monitoring.check.ts
Create the browser test file src/__checks__/homepage.spec.ts:
src/__checks__/homepage.spec.ts

Testing Your Setup

Test your configuration locally before deployment:
Terminal
This test command will run your browser check in the Checkly infrastructure. Use this flow to test your monitoring configuration and validate preview environments.

Deployment

Deploy your monitoring to Checkly:
Terminal
The deploy command turns your browser check into a synthetic monitor checking your website every 5 minutes from multiple locations.

Next Steps

Learn More