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({