# checkly validate - Checkly Docs

> Validate your project without deploying it.

Source: https://www.checklyhq.com/docs/cli/checkly-validate/

---

Back to top
- Usage
- Command Options
- Output
- Related Commands

CLI Commands

# checkly validate

Validate your project without deploying it.

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`](https://www.checklyhq.com/docs/cli/checkly-test) and [`checkly deploy`](https://www.checklyhq.com/docs/cli/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

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](https://www.checklyhq.com/docs/cli/overview).

## Usage

Terminal

```
npx checkly validate [options]
```

Option Required Description

`--config, -c` - The Checkly CLI configuration file. If not passed, uses the `checkly.config.ts|js` file in the current directory.

`--[no-]verify-runtime-dependencies` - Return an error if checks import dependencies that are not supported by the selected runtime.

## 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

```
npx checkly validate --config checkly.config.ts
npx checkly validate -c="./checkly.staging.config.ts"
```

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

```
npx checkly validate --no-verify-runtime-dependencies
```

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

```
npx checkly validate

Parsing your project... ✅

Validating project resources... ✅

✔ Your project is valid.
```

When the project has errors, the command lists each one with the resource it belongs to and exits with code 1:
Terminal

```
npx checkly validate

Parsing your project... ✅

Validating project resources... ❌

✖ [ApiCheck:books-api] Invalid property value

The value provided for property "maxResponseTime" is not valid.

Reason: The value of "maxResponseTime" must be 30000 or lower.

The current value is 40000.

✖ Your project is not valid.
```

## Related Commands

- [`checkly test`](https://www.checklyhq.com/docs/cli/checkly-test) - Run your checks in the Checkly cloud before deploying

- [`checkly deploy`](https://www.checklyhq.com/docs/cli/checkly-deploy) - Deploy your project to your Checkly account

Was this page helpful?

[Suggest edits](https://github.com/checkly/docs/edit/main/cli/checkly-validate.mdx)[Raise issue](https://github.com/checkly/docs/issues/new?title=Issue%20on%20docs&body=Path:%20/cli/checkly-validate)

[checkly trigger Previous](https://www.checklyhq.com/docs/cli/checkly-trigger)[checkly whoami Next](https://www.checklyhq.com/docs/cli/checkly-whoami)

[x](https://x.com/checklyhq)[github](https://github.com/checkly)[linkedin](https://linkedin.com/company/checkly)

[Powered by This documentation is built and hosted on Mintlify, a developer documentation platform](https://www.mintlify.com/?utm_campaign=poweredBy&utm_medium=referral&utm_source=checkly-422f444a)
