table of contents Table of contents

Getting Started

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.

npm create checkly

Now, login to your Checkly account or sign up for a new account right from the terminal.

npx checkly login

After this, let’s dry run the Checks in your new project against the global Checkly infrastructure.

npx checkly test

This should report the following output to your terminal

Running 5 checks in eu-west-1.

  ✔ Homepage - fetch stats (43ms)
  ✔ 404 page (7s)
  ✔ Homepage (7s)
  ✔ Homepage - fetch stats (50ms)
  ✔ docs-search.spec.ts (11s)

5 passed, 5 total

Lastly, you deploy your Checks and related alert channels to Checkly, so we run your checks around the clock.

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

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.

You can contribute to this documentation by editing this page on Github