From f64244f263aab9b1d3caf4bc5ff6ae805c98730b Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Fri, 27 Nov 2026 03:43:17 +0900 Subject: [PATCH] feat(cli): list validate as a core command [RED-1573] `checkly validate` was hidden until validation became more thorough. It now reports config diagnostics, missing check locations, unsupported runtime dependencies and alert channels the account cannot use, so expose it under CORE COMMANDS with a clearer description and point the AI context at it. Co-Authored-By: Claude Opus 5.5 --- packages/cli/e2e/__tests__/help.spec.ts | 11 ++++++----- packages/cli/src/ai-context/references/configure.md | 1 + packages/cli/src/commands/validate.ts | 4 ++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/cli/e2e/__tests__/help.spec.ts b/packages/cli/e2e/__tests__/help.spec.ts index a98389786..aafd1b9c5 100644 --- a/packages/cli/e2e/__tests__/help.spec.ts +++ b/packages/cli/e2e/__tests__/help.spec.ts @@ -46,11 +46,12 @@ describe('help', () => { it('should print core and additional commands and topic', async () => { const { stdout } = await runCheckly(fixt, ['--help']) expect(stdout).toContain(`CORE COMMANDS - deploy Deploy your project to your Checkly account. - init Initialize Checkly in your project - pw-test Test your Playwright Tests on Checkly. - test Test your checks on Checkly. - trigger Trigger your existing checks on Checkly.`) + deploy Deploy your project to your Checkly account. + init Initialize Checkly in your project + pw-test Test your Playwright Tests on Checkly. + test Test your checks on Checkly. + trigger Trigger your existing checks on Checkly. + validate Validate your project without deploying it.`) expect(stdout).toContain(`ADDITIONAL COMMANDS account View and manage your Checkly account. diff --git a/packages/cli/src/ai-context/references/configure.md b/packages/cli/src/ai-context/references/configure.md index a283ca642..885d48a39 100644 --- a/packages/cli/src/ai-context/references/configure.md +++ b/packages/cli/src/ai-context/references/configure.md @@ -72,6 +72,7 @@ Run `npx checkly skills manage plan` for the full reference. ## Testing and Debugging +- Validate the project using the `npx checkly validate` command. It reports configuration errors and warnings without running or deploying any checks. - Test checks using the `npx checkly test` command. Pass environment variables with the `-e` flag, results are recorded by default (use `--no-record` to skip), and use `--verbose` to see all errors. ## Deploying diff --git a/packages/cli/src/commands/validate.ts b/packages/cli/src/commands/validate.ts index 36ab65642..0ed72ef09 100644 --- a/packages/cli/src/commands/validate.ts +++ b/packages/cli/src/commands/validate.ts @@ -9,10 +9,10 @@ import { Runtime } from '../runtimes/index.js' export default class Validate extends AuthCommand { static coreCommand = true - static hidden = true // Expose when validation is more thorough. + static hidden = false static readOnly = true static idempotent = true - static description = 'Validate your project.' + static description = 'Validate your project without deploying it.' static flags = { 'config': Flags.string({