📖 Complete documentation for WP-CLI https://make.wordpress.org/cli/handbook/
Find a file
2024-02-08 19:13:25 +01:00
.github Create CODEOWNERS to make sure we get pings 2022-09-29 14:54:14 -07:00
bin Adapt handbook for release 2.10 2024-02-08 16:42:08 +00:00
commands Adapt handbook for release 2.10 2024-02-08 16:42:08 +00:00
internal-api Run update 2023-12-08 09:10:46 +00:00
.gitignore Prepare handbook for v2.9.0 (#467) 2023-11-01 15:00:04 -07:00
bug-reports.md Update GitHub links to use search endpoint instead (#453) 2023-07-06 05:35:03 -07:00
code-review.md Grammar reverted back as schlessera suggested 2020-03-02 20:16:09 +05:30
commands-cookbook.md Adapt branch names in links 2022-01-25 08:33:59 -06:00
committers-credo.md Uppercase for 'Committers Credo' title (#433) 2023-01-24 09:44:27 -08:00
common-issues.md Apply suggestions from code review 2023-06-08 10:55:45 +02:00
config.md Add documentation for --context (#466) 2023-10-12 15:16:00 -07:00
contributing.md Update GitHub links to use search endpoint instead (#453) 2023-07-06 05:35:03 -07:00
contributor-day.md Remove completed issue 2023-11-10 04:40:39 -08:00
doctor-check-constant-value.md Move the Doctor docs under 'Guides' (#431) 2023-01-20 09:23:24 -08:00
doctor-check-file-contents.md Move the Doctor docs under 'Guides' (#431) 2023-01-20 09:23:24 -08:00
doctor-check-option-value.md Move the Doctor docs under 'Guides' (#431) 2023-01-20 09:23:24 -08:00
doctor-check-plugin-status.md Move the Doctor docs under 'Guides' (#431) 2023-01-20 09:23:24 -08:00
doctor-customize-config.md Move the Doctor docs under 'Guides' (#431) 2023-01-20 09:23:24 -08:00
doctor-default-checks.md Add two primary wp doctor docs to the handbook (#429) 2023-01-19 05:45:52 -08:00
doctor-write-custom-check.md Add secondary wp doctor content and a landing page (#430) 2023-01-20 09:07:06 -08:00
doctor.md Move the Doctor docs under 'Guides' (#431) 2023-01-20 09:23:24 -08:00
documentation-standards.md Grammar reverted back as schlessera suggested 2020-03-02 20:16:09 +05:30
external-resources.md Change reference to the madewithlove blog 2021-11-09 22:24:28 +01:00
force-output-specific-locale.md Grammar reverted back as schlessera suggested 2020-03-02 20:16:09 +05:30
governance.md Add maintainer expectations to the Governance page 2023-03-23 10:36:23 +01:00
hosting-companies.md Update hosting-companies.md 2023-11-03 11:09:06 +02:00
how-to-create-custom-plugins.md Too many positional arguments 2022-08-26 15:13:40 +06:00
how-to-install.md Separate how-tos into dedicated pages. 2020-06-17 22:20:12 +01:00
how-to-maintenance-mode.md Separate how-tos into dedicated pages. 2020-06-17 22:20:12 +01:00
how-to-start-webserver.md Separate how-tos into dedicated pages. 2020-06-17 22:20:12 +01:00
how-to.md Separate how-tos into dedicated pages. 2020-06-17 22:20:12 +01:00
identify-plugin-theme-conflict.md Add documentation on how to debug plugin/theme conflicts 2017-11-13 05:13:12 -08:00
implementation-details.md Link to further details on why wp-config.php is parsed 2017-10-17 10:35:36 -07:00
index.md Add contributor day page to TOC 2023-08-22 00:46:35 +02:00
installing.md Fix phar download url (#428) 2022-12-15 10:18:57 -08:00
internal-api.md Update handbook for v2.5.0 release 2021-05-14 13:24:24 +01:00
LICENSE Update copyright date 2022-01-07 12:55:32 -06:00
philosophy.md Link to 'Shell Friends' from the Philosophy doc (#435) 2023-02-06 09:18:49 -08:00
plugin-unit-tests.md Update plugin-unit-tests.md (#455) 2023-08-01 15:54:36 -07:00
pull-requests.md Refresh functional test docs (#471) 2023-11-07 04:16:55 -08:00
quick-start.md Update example of 'wp config create' 2019-04-20 22:09:21 +04:30
README.md Fix issue with broken filename 2018-10-02 08:28:22 -07:00
release-checklist.md Add periods at the end of bullet points 2019-04-18 12:56:01 +02:00
repository-management.md Update GitHub links to use search endpoint instead (#453) 2023-07-06 05:35:03 -07:00
roadmap.md Update roadmap.md 2024-02-08 19:13:25 +01:00
running-commands-remotely.md Adds example --ssh= schemes (#450) 2023-06-08 04:07:50 -07:00
sharing-wp-cli-packages.md CLI awesome! 2017-09-29 10:19:19 -07:00
shell-friends.md Added "Sort plugins or themes by certain column(s)" to "Snippets" (#446) 2023-05-31 17:03:10 -07:00
tools.md Adding new plugin to handbook (#427) 2022-12-15 06:26:54 -08:00
troubleshooting.md Update GitHub links to use search endpoint instead (#453) 2023-07-06 05:35:03 -07:00
wp-cli.yml Port over website code to generate internal API docs 2017-04-21 04:31:56 -07:00

wp-cli/handbook

These files comprise the WP-CLI handbook (make.wordpress.org/cli/handbook) and WP-CLI commands directory (developer.wordpress.org/cli/commands).

The documentation is located in GitHub to enable a pull request-based editing workflow.

Long-form documentation (e.g. "Commands cookbook") can be edited directly.

Internal API docs and command pages are generated dynamically from the WP-CLI codebase using the wp handbook series of commands.

Before running these commands the bash script bin/install-packages.sh should be run to install the latest versions of the non-bundled commands in bin/packages. Note wp must point to the target WP-CLI instance, i.e. the phar/git that contains the docblocks to be generated against, and should be run with WP_CLI_PACKAGES_DIR=bin/packages and WP_CLI_CONFIG_PATH=/dev/null.

So for instance to generate all dynamically created documentation against the nightly phar run:

wp cli update --nightly
bin/install_packages.sh
WP_CLI_PACKAGES_DIR=bin/packages WP_CLI_CONFIG_PATH=/dev/null wp handbook gen-all

All documentation is imported automatically into WordPress.org in a two step process:

  1. WordPress reads commands-manifest.json or handbook-manifest.json to understand all pages that need to be created.
  2. Each WordPress page has a markdown_source attribute specifying a Markdown file to be fetched, converted to HTML, and saved in the database.

For make.wordpress.org/cli, the import process is a WordPress plugin running a WP Cron job every 15 minutes. For developer.wordpress.org/cli, this is a class in the devhub theme running a WP Cron job every 12 hours.