All Projects → wp-cli → Doctor Command

wp-cli / Doctor Command

Licence: mit
Diagnose problems within WordPress by running a series of checks for symptoms

Projects that are alternatives of or similar to Doctor Command

Wp Cli
⚙️ WP-CLI framework
Stars: ✭ 4,474 (+5356.1%)
Mutual labels:  wp-cli, hacktoberfest
Vanessa Automation
BDD в 1С
Stars: ✭ 203 (+147.56%)
Mutual labels:  hacktoberfest, gherkin
Specflow
#1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration
Stars: ✭ 1,827 (+2128.05%)
Mutual labels:  hacktoberfest, gherkin
Handbook
📖 Complete documentation for WP-CLI
Stars: ✭ 129 (+57.32%)
Mutual labels:  wp-cli, hacktoberfest
Profile Command
Quickly identify what's slow with WordPress
Stars: ✭ 180 (+119.51%)
Mutual labels:  wp-cli, hacktoberfest
Restful
Unlocking the potential of the WP REST API at the command line
Stars: ✭ 134 (+63.41%)
Mutual labels:  wp-cli, hacktoberfest
Awesome Wp Cli
A curated list of packages and resources for WP-CLI, the command-line interface for WordPress.
Stars: ✭ 129 (+57.32%)
Mutual labels:  wp-cli, hacktoberfest
Stream
🗄️ Stream plugin for WordPress
Stars: ✭ 335 (+308.54%)
Mutual labels:  wp-cli, hacktoberfest
Entity Command
Manage WordPress comments, menus, options, posts, sites, terms, and users.
Stars: ✭ 38 (-53.66%)
Mutual labels:  wp-cli, hacktoberfest
Commudle Ng
World's first community management platform. And it's free!
Stars: ✭ 81 (-1.22%)
Mutual labels:  hacktoberfest
Rust Onig
Rust bindings for the Oniguruma regex library
Stars: ✭ 81 (-1.22%)
Mutual labels:  hacktoberfest
Windows exporter
Prometheus exporter for Windows machines
Stars: ✭ 1,230 (+1400%)
Mutual labels:  hacktoberfest
Ign Gazebo
Open source robotics simulator. Through Ignition Gazebo users have access to high fidelity physics, rendering, and sensor models. Additionally, users and developers have multiple points of entry to simulation including a graphical user interface, plugins, and asynchronous message passing and services. Ignition Gazebo is derived from Gazebo, and represents over 16 years of development and experience in robotics and simulation. This library is part of the Ignition Robotics project.
Stars: ✭ 81 (-1.22%)
Mutual labels:  hacktoberfest
Passwd
A beautiful, cross-platform, encrypted password manager 🔐
Stars: ✭ 82 (+0%)
Mutual labels:  hacktoberfest
Kde
[MIRROR] KDE team's testing overlay
Stars: ✭ 80 (-2.44%)
Mutual labels:  hacktoberfest
Shlink Web Client
A React-based client application for Shlink
Stars: ✭ 81 (-1.22%)
Mutual labels:  hacktoberfest
Theodinproject
Main Website for The Odin Project
Stars: ✭ 1,227 (+1396.34%)
Mutual labels:  hacktoberfest
Vpk
📦 Open, Search, Extract and Create VPKs in python
Stars: ✭ 79 (-3.66%)
Mutual labels:  hacktoberfest
Travel Guide
"A travel guide to suggest activities you can do once you arrive to a certain destination. Or you can just browse destinations and check out the different available activities."
Stars: ✭ 82 (+0%)
Mutual labels:  hacktoberfest
Binari
Interactive code editor with a live binary tree visual designed to teach new developers the fundamentals of dynamic programming.
Stars: ✭ 82 (+0%)
Mutual labels:  hacktoberfest

wp-cli/doctor-command

Diagnose problems within WordPress by running a series of checks for symptoms.

Build Status

Quick links: Overview | Using | Installing | Contributing

Overview

wp doctor lets you easily run a series of configurable checks to diagnose what's ailing with WordPress.

Without wp doctor, your team has to rely on their memory to manually debug problems. With wp doctor, your team saves hours identifying the health of your WordPress installs by codifying diagnosis procedures as a series of checks to run with WP-CLI. wp doctor comes with dozens of checks out of the box, and supports customized doctor.yml files to define the checks that are most important to you.

Each check includes a name, status (either "success", "warning", or "error"), and a human-readable message. For example, cron-count is a check to ensure WP Cron hasn't exploded with jobs:

$ wp doctor check cron-count
+------------+---------+--------------------------------------------------------------------+
| name       | status  | message                                                            |
+------------+---------+--------------------------------------------------------------------+
| cron-count | success | Total number of cron jobs is within normal operating expectations. |
+------------+---------+--------------------------------------------------------------------+

Want to pipe the results into another system? Use --format=json or --format=csv to render checks in a machine-readable format.

wp doctor is designed for extensibility. Create a custom doctor.yml file to define additional checks you deem necessary for your system:

plugin-w3-total-cache:
  check: Plugin_Status
  options:
    name: w3-total-cache
    status: uninstalled

Then, run the custom doctor.yml file using the --config=<file> parameter:

$ wp doctor check --fields=name,status --all --config=doctor.yml
+-----------------------+--------+
| name                  | status |
+-----------------------+--------+
| plugin-w3-total-cache | error  |
+-----------------------+--------+

Running all checks together, wp doctor is the fastest way to get a high-level overview to the health of your WordPress installs.

Using

This package implements the following commands:

wp doctor check

Run a series of checks against WordPress to diagnose issues.

wp doctor check [<checks>...] [--all] [--spotlight] [--config=<file>] [--fields=<fields>] [--format=<format>]

OPTIONS

A check is a routine run against some scope of WordPress that reports a 'status' and a 'message'. The status can be 'success', 'warning', or 'error'. The message is a human-readable explanation of the status.

[<checks>...]
	Names of one or more checks to run.

[--all]
	Run all registered checks.

[--spotlight]
	Focus on warnings and errors; ignore any successful checks.

[--config=<file>]
	Use checks registered in a specific configuration file.

[--fields=<fields>]
	Limit the output to specific fields. Default is name,status,message.

[--format=<format>]
	Render results in a particular format.
	---
	default: table
	options:
	  - table
	  - json
	  - csv
	  - yaml
	---

EXAMPLES

# Verify WordPress core is up to date.
$ wp doctor check core-update
+-------------+---------+-----------------------------------------------------------+
| name        | status  | message                                                   |
+-------------+---------+-----------------------------------------------------------+
| core-update | warning | A new major version of WordPress is available for update. |
+-------------+---------+-----------------------------------------------------------+

# Verify the site is public as expected.
$ wp doctor check option-blog-public
+--------------------+--------+--------------------------------------------+
| name               | status | message                                    |
+--------------------+--------+--------------------------------------------+
| option-blog-public | error  | Site is private but expected to be public. |
+--------------------+--------+--------------------------------------------+

wp doctor list

List all available checks to run.

wp doctor list [--config=<file>] [--fields=<fields>] [--format=<format>]

OPTIONS

[--config=<file>]
	Use checks registered in a specific configuration file.

[--fields=<fields>]
	Limit the output to specific fields. Defaults to name,description.

[--format=<format>]
	Render output in a specific format.
	---
	default: table
	options:
	  - table
	  - json
	  - csv
	  - count
	---

EXAMPLES

$ wp doctor list
+-------------+---------------------------------------------+
| name        | description                                 |
+-------------+---------------------------------------------+
| core-update | Check whether WordPress core is up to date. |
+-------------+---------------------------------------------+

Installing

Installing this package requires WP-CLI's latest stable release. Update to the latest stable release with wp cli update.

Once you've done so, you can install this package with:

wp package install [email protected]:wp-cli/doctor-command.git

Contributing

We appreciate you taking the initiative to contribute to this project.

Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.

For a more thorough introduction, check out WP-CLI's guide to contributing. This package follows those policy and guidelines.

Reporting a bug

Think you’ve found a bug? We’d love for you to help us get it fixed.

Before you create a new issue, you should search existing issues to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.

Once you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please create a new issue. Include as much detail as you can, and clear steps to reproduce if possible. For more guidance, review our bug report documentation.

Creating a pull request

Want to contribute a new feature? Please first open a new issue to discuss whether the feature is a good fit for the project.

Once you've decided to commit the time to seeing your pull request through, please follow our guidelines for creating a pull request to make sure it's a pleasant experience.

This README.md is generated dynamically from the project's codebase using wp scaffold package-readme (doc). To suggest changes, please submit a pull request against the corresponding part of the codebase.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].