Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Checkly CLI

$ checkly Official Med Risk
Checkly · Workspace & SaaS · Apache-2.0 · macos / linux / windows

Checkly 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).

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g checkly
CLI vs MCP Decision CLI Preferred vs MCP

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

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
✓ Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Supports deploy --dry-run JSON plan output, --force non-interactive deploys, --config, --env, and an official checkly/checkly-cli skill.

  • checkly deploy --dry-run outputs structured JSON execution plans
  • Official skill available via npx skills add checkly/checkly-cli
Trust & Safety 21 / 25

Provides --dry-run, --preview, and --preserve-resources to prevent accidental metric loss, plus CHECKLY_API_KEY scoping.

  • --preserve-resources detaches removed checks instead of deleting history
  • deploy --dry-run inspects resource diffs before applying
Setup & Portability 13 / 15

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
Utility & Efficiency 12 / 15

Brings Monitoring-as-Code (test, deploy, env, runtimes) into existing TypeScript/Playwright repos.

  • Reuses project Playwright tests directly as scheduled synthetic checks
Maintenance & Lineage 9 / 10

Official Checkly repository (checkly/checkly-cli) under Apache-2.0 license.

  • First-party Checkly open-source CLI
Docs & Verifiability 8 / 10

Well-documented at checklyhq.com/docs/cli/ with explicit flag descriptions and CI examples.

  • Official Checkly CLI reference docs

Security, Auth & Guardrails

Auth Modes
Env API Key OAuth Browser Config File
Credential Storage

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).

Side Effects
Read-Only Local Write Remote Write Destructive Billing Impact
Cost & Quotas

Apache-2.0 open-source CLI; Checkly has a free hobby tier and paid plans based on check runs.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Preview Checkly deployment plan as JSON
npx checkly deploy --dry-run

Evaluates local checkly.config.ts constructs against Checkly and outputs the planned diff as JSON without deploying.

Run API and Playwright checks without mutating live monitors
npx checkly test --location eu-west-1

Executes local synthetic checks against the specified Checkly location without deploying schedule changes.

Controlled Writes & Previews

Deploy monitoring checks non-interactively
npx checkly deploy --force --preserve-resources

Deploys updated checks without prompts while preserving historical data for detached resources.

Strengths for Agents

  • + checkly deploy --dry-run emits a clean JSON plan and --preserve-resources protects historical metrics.
  • + Ships an official checkly/checkly-cli agent skill alongside npx checkly test verification.

Caveats & Pitfalls

  • ! checkly test --record and live scheduled checks consume Checkly account run quotas.
  • ! auth.json stores tokens in plaintext locally if checkly login is used instead of CHECKLY_API_KEY.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI