PHPackages                             nunomaduro/ohdear-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. nunomaduro/ohdear-cli

Abandoned → [ohdearapp/ohdear-cli](/?search=ohdearapp%2Fohdear-cli)Project[Logging &amp; Monitoring](/categories/logging)

nunomaduro/ohdear-cli
=====================

A standalone CLI tool for Oh Dear monitoring.

v5.2.1(1mo ago)137273MITPHPPHP ^8.4CI passing

Since Feb 20Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/ohdearapp/ohdear-cli)[ Packagist](https://packagist.org/packages/nunomaduro/ohdear-cli)[ Docs](https://ohdear.app)[ GitHub Sponsors](https://github.com/owenvoke)[ RSS](/packages/nunomaduro-ohdear-cli/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (22)Versions (42)Used By (0)

 [![](docs/example.jpg)](docs/example.jpg)

 [![Static Analysis status](https://camo.githubusercontent.com/bf227ec3013d5482201d6860e39e020c1e204ddaeb9c8db6d6ea0bd3598b5b74/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f68646561726170702f6f68646561722d636c692f7374617469632e796d6c3f7374796c653d666c61742d737175617265266c6162656c3d737461746963253230616e616c79736973)](https://github.com/ohdearapp/ohdear-cli/actions/workflows/static.yml) [![Latest Stable Version](https://camo.githubusercontent.com/3c19333baeafcc3fed11755ab2c0aaaaa08d535cb4f7075d4e4fe1457cc03893/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f68646561726170702f6f68646561722d636c692e7376673f7374796c653d666c61742d737175617265266c6162656c3d737461626c65)](https://packagist.org/packages/ohdearapp/ohdear-cli) [![License](https://camo.githubusercontent.com/bcae8ff900611bd00d96bd7ee6ccb8811b3601ffe7664b7cda8d2cd4c0351aef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f68646561726170702f6f68646561722d636c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ohdearapp/ohdear-cli)

About Oh Dear CLI
-----------------

[](#about-oh-dear-cli)

Oh Dear CLI is a command line tool to manage [Oh Dear](https://ohdear.app) website monitoring. Built with Laravel Zero, it auto-generates commands from the Oh Dear OpenAPI spec so every API endpoint is available as a CLI command.

Install
-------

[](#install)

> **Requires [PHP 8.4+](https://php.net/releases)**

Via Composer

```
composer global require ohdearapp/ohdear-cli
```

Ensure Composer's global bin directory is in your `PATH`:

```
composer global config bin-dir --absolute
```

Authentication
--------------

[](#authentication)

First, log in with your Oh Dear API token. You can generate one at [ohdear.app/user-settings/api](https://ohdear.app/user-settings/api).

```
ohdear login
```

You'll be prompted for your API token. The token is stored in `~/.ohdear/config.json`.

To log out:

```
ohdear logout
```

Usage
-----

[](#usage)

List all available commands:

```
ohdear list
```

### Monitors

[](#monitors)

```
# List all monitors
ohdear list-monitors

# Get a specific monitor
ohdear get-monitor --monitor-id=123

# Add a new monitor
ohdear create-monitor --field url="https://example.com" --field team_id=1

# Delete a monitor
ohdear delete-monitor --monitor-id=123
```

### Uptime and downtime

[](#uptime-and-downtime)

```
ohdear get-uptime --monitor-id=123
ohdear get-downtime --monitor-id=123
```

### Broken links and mixed content

[](#broken-links-and-mixed-content)

```
ohdear list-broken-links --monitor-id=123
ohdear list-mixed-content --monitor-id=123
```

### Certificate health

[](#certificate-health)

```
ohdear get-certificate-health --monitor-id=123
```

### Maintenance periods

[](#maintenance-periods)

```
ohdear start-maintenance --monitor-id=123
ohdear stop-maintenance --monitor-id=123
ohdear list-maintenance-periods --monitor-id=123
```

### Status pages

[](#status-pages)

```
ohdear list-status-pages
ohdear get-status-page --status-page-id=123
ohdear create-status-page-update --status-page-id=123 --field title="Investigating" --field text="Looking into it."
```

### Cron checks

[](#cron-checks)

```
ohdear list-cron-checks --monitor-id=123
ohdear create-cron-check --monitor-id=123 --field name="Daily Backup" --field frequency_in_minutes=1440
```

### Lighthouse reports

[](#lighthouse-reports)

```
ohdear get-latest-lighthouse-report --monitor-id=123
ohdear list-lighthouse-reports --monitor-id=123
```

### Other commands

[](#other-commands)

```
ohdear get-me                    # Display authenticated user info
ohdear get-dns-history           # DNS history for a monitor
ohdear list-application-health-checks  # Application health checks
ohdear list-tags                 # List all tags
ohdear clear-cache               # Clear cached OpenAPI spec
```

By default, commands output human-readable text. Add `--json` for JSON output. Run `ohdear  --help` for full parameter details.

AI Skill
--------

[](#ai-skill)

Install the Oh Dear skill for AI coding assistants:

```
ohdear install-skill
```

Contributing
------------

[](#contributing)

Thank you for considering contributing to Oh Dear CLI. All contributions are welcome via pull requests.

You can have a look at the [CHANGELOG](CHANGELOG.md) for constant updates and detailed information about the changes.

License
-------

[](#license)

Oh Dear CLI is an open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

59

—

FairBetter than 99% of packages

Maintenance90

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity93

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 81.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~73 days

Recently: every ~1 days

Total

41

Last Release

51d ago

Major Versions

v1.0.0 → v2.0.02020-12-08

v2.7.0 → v3.0.02022-03-15

v3.5.1 → v4.0.02023-05-25

v4.5.2 → v5.0.02026-02-23

PHP version history (7 changes)v1.0.0PHP &gt;=7.1.3

v2.0.0PHP ^7.4

v2.4.0PHP ^7.4|^8.0

v3.0.0PHP ^8.0

v3.3.0PHP ^8.1

v4.3.0PHP ^8.2

v5.0.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/86cfef5c1f5195df1a9db17a5f8ecb34455e1f0133a725de9acf7f2fb26ac6a1?d=identicon)[nunomaduro](/maintainers/nunomaduro)

---

Top Contributors

[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (238 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (20 commits)")[![mattiasgeniar](https://avatars.githubusercontent.com/u/407270?v=4)](https://github.com/mattiasgeniar "mattiasgeniar (18 commits)")[![nunomaduro](https://avatars.githubusercontent.com/u/5457236?v=4)](https://github.com/nunomaduro "nunomaduro (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

climonitoringuptimeclimonitoringohdearuptime

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/nunomaduro-ohdear-cli/health.svg)

```
[![Health](https://phpackages.com/badges/nunomaduro-ohdear-cli/health.svg)](https://phpackages.com/packages/nunomaduro-ohdear-cli)
```

###  Alternatives

[ohdearapp/ohdear-cli

A standalone CLI tool for Oh Dear monitoring.

1371.3k](/packages/ohdearapp-ohdear-cli)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)[ohdearapp/laravel-ohdear-webhooks

Handle Oh Dear webhook calls in a Laravel app

2224.4k3](/packages/ohdearapp-laravel-ohdear-webhooks)[shalvah/clara

🔊 Simple, pretty, testable console output for CLI apps.

2811.8M6](/packages/shalvah-clara)[ohdearapp/health-check-results

Create application health check results for Oh Dear

10175.9k8](/packages/ohdearapp-health-check-results)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
