Checkly CLI
$ checkly Official Med RiskCheckly CLI (checkly) powers Monitoring-as-Code workflows for API and Playwright browser checks defined in TypeScript/JavaScript (checkly.config.ts). Supports checkly test (with --location, --env, --record), checkly deploy (with --dry-run JSON plan, --preview, --force, --preserve-resources), and official AI agent skills (npx skills add checkly/checkly-cli).
npm install -g checkly checkly executes local TypeScript/Playwright check bundles in your repo (checkly test) and diffs checkly.config.ts plans (checkly deploy --dry-run) directly against Git-tracked code.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports deploy --dry-run JSON plan output, --force non-interactive deploys, --config, --env, and an official checkly/checkly-cli skill.
checkly deploy --dry-runoutputs structured JSON execution plans- Official skill available via
npx skills add checkly/checkly-cli
Provides --dry-run, --preview, and --preserve-resources to prevent accidental metric loss, plus CHECKLY_API_KEY scoping.
--preserve-resourcesdetaches removed checks instead of deleting historydeploy --dry-runinspects resource diffs before applying
Cross-platform Node.js CLI via npm install -g checkly or npx checkly, commonly paired with Playwright projects.
- Works via npm and npx across macOS, Linux, and Windows
Brings Monitoring-as-Code (test, deploy, env, runtimes) into existing TypeScript/Playwright repos.
- Reuses project Playwright tests directly as scheduled synthetic checks
Official Checkly repository (checkly/checkly-cli) under Apache-2.0 license.
- First-party Checkly open-source CLI
Well-documented at checklyhq.com/docs/cli/ with explicit flag descriptions and CI examples.
- Official Checkly CLI reference docs
Security, Auth & Guardrails
Reads CHECKLY_API_KEY and CHECKLY_ACCOUNT_ID env vars (strict precedence), or stores interactive checkly login tokens in ~/Library/Preferences/@checkly/cli/auth.json (macOS) / ~/.config/@checkly/cli/auth.json (Linux).
Apache-2.0 open-source CLI; Checkly has a free hobby tier and paid plans based on check runs.
# Checkly CLI (checkly) Agent Rules - Authenticate with `CHECKLY_API_KEY` and `CHECKLY_ACCOUNT_ID` env vars rather than interactive `checkly login`. - Always run `npx checkly deploy --dry-run` (or `--preview`) before `npx checkly deploy --force`. - Pass `--preserve-resources` when refactoring checks so removed constructs do not wipe historical check metrics.
Agent-Ready Command Recipes
Safe Read-Only Queries
npx checkly deploy --dry-run
Evaluates local checkly.config.ts constructs against Checkly and outputs the planned diff as JSON without deploying.
npx checkly test --location eu-west-1
Executes local synthetic checks against the specified Checkly location without deploying schedule changes.
Controlled Writes & Previews
npx checkly deploy --force --preserve-resources
Deploys updated checks without prompts while preserving historical data for detached resources.
Strengths for Agents
- +
checkly deploy --dry-runemits a clean JSON plan and--preserve-resourcesprotects historical metrics. - + Ships an official
checkly/checkly-cliagent skill alongsidenpx checkly testverification.
Caveats & Pitfalls
- !
checkly test --recordand live scheduled checks consume Checkly account run quotas. - !
auth.jsonstores tokens in plaintext locally ifcheckly loginis used instead ofCHECKLY_API_KEY.