Skip to main content
The checkly validate command parses your project and checks its configuration and resources without running any checks or changing your Checkly account. It runs the same validation that checkly test and checkly deploy run before they start, so you can catch errors early, for example as a quick first step in CI. It reads your account’s runtimes from Checkly, so it needs a login and network access.
Before using checkly validate, ensure you have:
  • An initialized Checkly CLI project
  • At least one check or resource defined in your project
  • Valid Checkly account authentication (run npx checkly login if needed)
  • A checkly.config.ts or checkly.config.js configuration file
For additional setup information, see CLI overview.

Usage

Terminal

Command Options

string
Specify a configuration file to use instead of the checkly.config.ts or checkly.config.js in the current directory.Usage:
Terminal
boolean
default:"true"
Return an error if checks import dependencies that are not supported by the selected runtime. Can also be set with the CHECKLY_VERIFY_RUNTIME_DEPENDENCIES environment variable.Usage:
Terminal
If you’re using private locations and want to provide your own dependencies, disable the built-in dependency validation.

Output

A valid project prints any warnings and exits with code 0:
Terminal
When the project has errors, the command lists each one with the resource it belongs to and exits with code 1:
Terminal
  • checkly test - Run your checks in the Checkly cloud before deploying
  • checkly deploy - Deploy your project to your Checkly account