Available since CLI v7.8.0.
checkly init command sets up Checkly in your project. It detects your project’s existing configuration — package.json, Playwright, and Checkly config files — and walks you through the setup accordingly.
You can set up Checkly manually or let your AI coding agent handle the configuration. The command adapts its behavior based on the environment: interactive terminals get guided prompts, CI environments get non-interactive setup, and AI agents receive structured output.
Prerequisites
Prerequisites
Before using
checkly init, ensure you have:- Node.js installed
- A project directory (an existing
package.jsonis optional — the command can create one)
Usage
Terminal
| Option | Required | Description |
|---|---|---|
--target, -t | - | Install the Checkly skill for a specific AI agent platform. |
Command Options
Install the Checkly agent skill for a specific AI agent platform. Available platforms:
claude, cursor, windsurf, github-copilot, gemini-cli, codex, amp.Usage:Terminal
What to Expect
Theinit command detects your project context and adjusts its flow:
- No
package.json— prompts you to create one before continuing. - No Checkly config — creates a
checkly.config.tsand installschecklyandjitias dev dependencies. - Playwright detected — provides context-aware setup that accounts for your existing test infrastructure.
- Existing Checkly project — refreshes your agent skill to the latest version.
AI-Assisted Setup
When you choose the AI-assisted path (or pass--target), the command:
- Installs the Checkly agent skill for your platform
- Creates a
checkly.config.tsif one doesn’t exist - Installs dependencies
- Generates a starter prompt you can paste into your AI agent to begin configuring checks
Manual Setup
When you choose the manual path, the command:- Creates a
checkly.config.tsif one doesn’t exist - Installs dependencies
- Optionally copies example checks (API, browser, heartbeat, URL monitor) into a
__checks__directory
CI Mode
In CI environments (whenCI=true), the command runs non-interactively and outputs setup instructions.
Terminal
Examples
Terminal
Next Steps
After initialization, the typical workflow is:- Log in —
npx checkly loginto authenticate with your Checkly account - Test —
npx checkly test --recordto dry-run your checks - Deploy —
npx checkly deployto deploy checks to Checkly
Related Commands
checkly skills- Print project context and install agent skillscheckly login- Log in to your Checkly accountcheckly deploy- Deploy checks to Checkly