Skip to main content
The Checkly CLI gives you a JavaScript/TypeScript-native workflow for coding, testing and deploying synthetic monitoring at scale, from your code base. The Checkly CLI comes with native @playwright/test support. No lock-in, just write standard *.spec.ts files.

Starting your first project

Get started by installing the CLI using the following command which will guide you through the required steps to set up a fully working example.
Terminal
npm create checkly@latest
Now, login to your Checkly account or sign up for a new account right from the terminal.
Terminal
npx checkly login
After this, let’s dry run the Checks in your new project against the global Checkly infrastructure.
Terminal
npx checkly test
This should report the following output to your terminal
Running 4 checks in eu-west-1.

src/__checks__/api.check.ts
  ✔ Books API (222ms)
src/__checks__/home.check.ts
  ✔ Home page (24s)
  ✔ Login Check (5s)
src/__checks__/multi-step-spacex.check.ts
  ✔ SpaceX MS (4s)

4 passed, 4 total
Lastly, you deploy your Checks and related alert channels to Checkly, so we run your checks around the clock.
Terminal
npx checkly deploy
You just created your entire synthetic monitoring setup with API and Playwright-based Browser Checks from your code base! Open up your Checkly dashboard and you should see your check, ready to start monitoring around the clock. For a custom installation check out our installation docs.

Using AI IDEs and Copilots

Checkly is designed to work with AI IDEs and Copilots. You can use your preferred provider to generate code for API Checks, Browser Checks and all other constructs.
https://mintcdn.com/checkly-422f444a-mda-troubleshooting-section/1HkThlw0szGfxo4s/images/github-copilot-icon.svg?fit=max&auto=format&n=1HkThlw0szGfxo4s&q=85&s=0dd86869982a4ec681572bf2a593075b

GitHub Copilot

Download the Checkly instructions file and let copilot generate Checkly CLI code for you.
https://mintcdn.com/checkly-422f444a-mda-troubleshooting-section/C5l_11z1vWr98AyH/images/cursor-icon.svg?fit=max&auto=format&n=C5l_11z1vWr98AyH&q=85&s=c92272f19e7929b01b767356941a18ff

Cursor

Download the Checkly .mdc rules file and let Cursor generate Checkly CLI code for you.
https://mintcdn.com/checkly-422f444a-mda-troubleshooting-section/C5l_11z1vWr98AyH/images/claude-icon.svg?fit=max&auto=format&n=C5l_11z1vWr98AyH&q=85&s=17b28e662f25fdf1b83b85ff07dd7d4c

Claude Code

Download the Checkly rules file and let Claude generate Checkly CLI code for you.

Integrating with CI/CD

After kicking the tires, you should delegate the testing and deploying of your checks to your CI/CD pipeline. Check our docs on setting up the Checkly CLI with your favourite CI/CD platform.
https://mintcdn.com/checkly-422f444a-mda-troubleshooting-section/1HkThlw0szGfxo4s/images/github-icon-dark.svg?fit=max&auto=format&n=1HkThlw0szGfxo4s&q=85&s=d2076d763e3bc99f6638c0aabe13fff4

GitHub Actions

Run the Checkly CLI from GitHub Actions, export summary reports and integrate with mono repos
https://mintcdn.com/checkly-422f444a-mda-troubleshooting-section/1HkThlw0szGfxo4s/images/gitlab-logo.svg?fit=max&auto=format&n=1HkThlw0szGfxo4s&q=85&s=e03dd8501757f18dd166b672e8221e31

GitLab CI

Run the Checkly CLI from GitLab CI pipelines, using separate e2e-test and deploy jobs.
https://mintcdn.com/checkly-422f444a-mda-troubleshooting-section/qM5RuXvBpWVp7ZvB/images/jenkins-logo.svg?fit=max&auto=format&n=qM5RuXvBpWVp7ZvB&q=85&s=390e41cd2a7e3f0c025f6a31d045ec21

Jenkins

Run the Checkly CLI from a Jenkins pipeline using a Jenkinsfile.