What's new in Oh Dear CLI 3
As part of the transition to v3, the CLI has been made the official CLI for Oh Dear! It is now residing under the
ohdearapp/ohdear-cli Composer package. You can take a look at the
ohdearapp/ohdear-cli repository for the source code of the application.
It also features new commands for managing DNS history, application health, and better handling of unauthorised users.
First you'll need to install the CLI via Composer using:
composer require ohdearapp/ohdear-cli
brew install ohdear-cli
Once installed, set your API key in the
OHDEAR_API_TOKEN environment variable. You can generate an API key from the API access page.
Display a list of DNS history items and their summary
Display details about a specific DNS history item
ohdear-cli dns-history:show [site-id] [id]
Display application health for a specific site (since v3.2.0)
ohdear-cli application-health:show [id]
Lighthouse SEO Reports
Display a list of Lighthouse reports and their summary (since v3.3.0)
ohdear-cli lighthouse-report:list [site-id]
Display details about the latest Lighthouse report (since v3.3.0)
ohdear-cli lighthouse-report:show [site-id]
Display details about a specific Lighthouse report (since v3.3.0)
ohdear-cli lighthouse-report:show [site-id] [id]