npm create checkly@latest. But you can also add the CLI
from scratch with the following steps.
Prerequisites
- Node.js
v16.xor higher. - A text editor like Visual Studio Code.
Installation
First, install the CLI.Terminal
ts-node and typescript:
Terminal
checkly.config.ts (or checkly.config.js) at the root of your project. We recommend using TypeScript.
- TypeScript
- JavaScript
Terminal
Direct download
If you cannot access the npm registry directly, you can also download the Checkly CLI via our CDN. The download is a zipped folder containing a full installation of the boilerplate example project. You will find the following files and folders:- a
checkly.config.tsfile. - a
package.jsonfile including the necessary Typescript dependencies. - a
node_modulesdirectory with all dependencies pre-installed. - a
__checks__folder with some example checks.
If you want to move the CLI and its constructs to a different, already existing Node.js project, just copy the full contents
of the
node_modules folder to your project and manually add a checkly.config.ts file.Using a Proxy Server
The CLI respects the commonHTTP_PROXY environment variable for any outbound traffic, like running npx checkly test
or npx checkly deploy.
Terminal
api.checklyhq.comevents.checklyhq.com