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.
Prerequisites
Prerequisites
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 loginif needed) - A
checkly.config.tsorcheckly.config.jsconfiguration file
Usage
Terminal
Command Options
Specify a configuration file to use instead of the
checkly.config.ts or checkly.config.js in the current directory.Usage:Terminal
Return an error if checks import dependencies that are not supported by the selected runtime. Can also be set with the If you’re using private locations and want to provide your own dependencies, disable the built-in dependency validation.
CHECKLY_VERIFY_RUNTIME_DEPENDENCIES environment variable.Usage:Terminal
Output
A valid project prints any warnings and exits with code 0:Terminal
Terminal
Related Commands
checkly test- Run your checks in the Checkly cloud before deployingcheckly deploy- Deploy your project to your Checkly account