跳转到主要内容
本章内容23
-
01
Guides
Installing - Recommended and alternative installation mechanisms.
Quick start - Where to begin after you've...
14 小时前
-
02
Beginner's Guide
So you've heard about WP-CLI and want to try it out, but you're not sure where to start? This guide is for ...
14 小时前
-
03
Check status of a given plugin
One of the check types included in
wp doctor is
Plugin_Status, or the ability to assert that a given plug...
14 小时前
-
04
Commands Cookbook
Creating your own custom WP-CLI command can be easier than it looks — and you can use
wp scaffold package ...
14 小时前
-
05
Common Issues
Error: Can't connect to the database
A few possibilities:
a) you're using MAMP, but WP-CLI is not using the...
1 天前
-
06
Common Tasks with WP-CLI
Not sure what you can do with WP-CLI? This page showcases practical, everyday WordPress management tasks yo...
14 小时前
-
07
Customize doctor diagnostic checks
Even though
wp doctor comes with a number of default diagnostic checks, it's designed with extensibility a...
14 小时前
-
08
Default doctor diagnostic checks
Although its power comes from its ability to be customized,
wp doctor includes a number of default diagnos...
14 小时前
-
09
Doctor Guides
Here are some helpful guides for using
wp doctor:
Default doctor diagnostic checks
Customize doctor diagno...
14 小时前
-
10
External Resources
Blog posts & tutorials
scribu: A Command-Line Interface for WordPress
madewithlove: WP-CLI: WordPress Comma...
1 天前
-
11
Force output to a specific locale
WP-CLI always outputs English because it doesn't support localization. But, because WordPress supports loca...
1 天前
-
12
Installing
Requirements
WP-CLI requires PHP 7.2.24 or later. To check the version of PHP available on your system, run...
12 小时前
-
13
Installing WP-CLI Packages
WP-CLI packages are community-maintained projects built on WP-CLI. They can contain WP-CLI commands, but th...
14 小时前
-
14
Quick Start
Congratulations! You've installed WP-CLI for the first time, and are ready to level-up your use of WordPres...
14 小时前
-
15
Running Commands Remotely
Using an SSH connection
WP-CLI accepts an
--ssh=[<scheme>:][<user>@]<host>[:<port>][<path>] global paramet...
1 天前
-
16
Sharing WP-CLI Packages
By default, WP-CLI places installed packages in
~/.wp-cli/packages/, a hidden subdirectory of the user’s h...
1 天前
-
17
Troubleshooting Guide
Before you start to report a new issue on the GitHub repository, make sure to check your local installation...
14 小时前
-
18
Verifying WP-CLI Downloads
This guide explains how to cryptographically verify the authenticity and integrity of WP-CLI releases after...
1 天前
-
19
Write a check for asserting the value of a given constant
One of the check types included in
wp doctor is
Constant_Definition, or the ability to assert that a give...
14 小时前
-
20
Write a check for asserting the value of a given option
One of the check types included in
wp doctor is
Option_Value, or the ability to assert that a given optio...
14 小时前
-
21
Write a check for verifying contents of WordPress files
One of the check types included in
wp doctor is
File_Contents, or the ability to check all or a selection...
14 小时前
-
22
Write a custom check to perform an arbitrary assertion
Because
wp doctor checks are built on top of a foundational abstraction, it's relatively straightforward f...
1 天前
-
23
Writing Behat Tests for WP-CLI
WP-CLI uses Behat for functional testing. This guide will help you understand how to write and run Behat te...
14 小时前