This example project shows how you can use the Checkly CLI in a monitoring as code (MaC) workflow to perform uptime monitoring.
- clone this repository
- run
npm install - Log in to your Checkly account wiht
npx checkly login - do a test run with
npx checkly test(only the TCP monitor and URL pinger will run, since the heartbeat monitor can't really run ad hoc) - preview a deploy to your account with
npx checkly deploy -p
you should see an output like:
Create:
HeartbeatMonitor: heartbeat-newsletter-2
TcpMonitor: hello-tcp-2
UrlMonitor: url-pinger-3For more information, check the reference documentation on Uptime Monitoring.