Oh Dear CLI

CLI Tool

Interact with Oh Dear directly from your command line to manage monitors and view check results.

Our CLI tool allows you to interact with Oh Dear via the CLI.

The maintainer of this tool, Owen Voke, has written a series of blogposts on the Oh Dear CLI tool.

Installation #

Requires PHP 8.1+

Via composer:

composer global require ohdearapp/ohdear-cli

Via Docker:

docker run --rm ghcr.io/ohdearapp/ohdear-cli:latest

Via Homebrew:

brew install ohdear-cli

If Brew can't find the formula, try running brew update.

Once the Oh Dear CLI is installed, set your API key in the OHDEAR_API_TOKEN environment variable. You can generate one from the API access page.

Usage #

ohdear list

Available commands

Account

Monitors

Checks

Uptime

Certificate Health

Cron Job Monitoring

Status Pages

Screenshots

CLI Tool