checkly deploy
command deploys all your checks and associated resources like alert channels to your Checkly account. This command synchronizes your local monitoring-as-code configuration with your Checkly account.
Prerequisites
Prerequisites
Before using , 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
orcheckly.config.js
configuration file
Usage
The basic command deploys all resources to your Checkly account, synchronizing your local monitoring-as-code configuration with the Checkly monitoring infrastructure.Terminal
Option | Description |
---|---|
--config, -c | The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory. |
--force, -f | Force mode. Skips the confirmation dialog. |
--output, -o | Show the changes made after the deploy command. |
--preview, -p | Show a preview of the changes made by the deploy command. |
--[no-]schedule-on-deploy | Enables automatic check scheduling after a deploy. |
--[no-]verify-runtime-dependencies | Return an error if checks import dependencies that are not supported by the selected runtime. |
Command Options
Specify a configuration file to use instead of the
checkly.config.ts
or checkly.config.js
in the current directory.Usage:Terminal
Skip the interactive confirmation dialog and proceed with the operation.Use Examples
--force
to set up automated CI/CD pipelines testing preview environments and deploying monitoring changes automatically.Usage:Terminal
Terminal
Show applied differences after deploying, providing a summary of what was changed.Usage:Examples:
Terminal
Terminal
Show a preview of the changes that would be made by the deploy command.Usage:Examples
Terminal
Terminal
Prevent checks from running automatically when they are deployed.Usage:Useful when you want to deploy changes but delay monitoring execution until later.
Terminal
Return an error if checks import dependencies that are not supported by the selected runtime.Usage:Runtime-dependent checks run in a specific runtime with a pre-defined set of dependencies. If you’re using private locations and want to provide your own dependencies, disable the built-in dependency validation.
Terminal
You can provide custom dependencies in Playwright Check Suites because they don’t rely on a specific runtime.
Git Integration
When you deploy a project, you can attach Git-specific information so changes to any resources are displayed in the Checkly web UI with the correct commit, branch, and author information. The Checkly CLI evaluates Git information from your local or CI environment on a best effort basis. Override any automatically detected values by setting the corresponding environment variables.item | auto | variable | description |
---|---|---|---|
Repository | false | repoUrl in checkly.config.ts or CHECKLY_REPO_URL | The URL of your repo on GitHub, GitLab etc. |
Commit hash | true | CHECKLY_REPO_SHA | The SHA of the commit. |
Branch | true | CHECKLY_REPO_BRANCH | The branch name. |
Commit owner | true | CHECKLY_REPO_COMMIT_OWNER | The committer’s name or email. |
Commit message | true | CHECKLY_REPO_COMMIT_MESSAGE | The commit message. |
Environment | false | CHECKLY_TEST_ENVIRONMENT | The environment name, e.g. “staging”. |
Related Commands
checkly login
- Log in to your Checkly accountcheckly test
- Test your setup before deployment