最近更新的页面
Writing Behat Tests for WP-CLI
WP-CLI uses Behat for functional testing. This guide will help you understand how to write and ru...
Troubleshooting Guide
Before you start to report a new issue on the GitHub repository, make sure to check your local in...
Sharing WP-CLI Packages
By default, WP-CLI places installed packages in ~/.wp-cli/packages/, a hidden subdirectory of th...
Running Commands Remotely
Using an SSH connection WP-CLI accepts an --ssh=[<scheme>:][<user>@]<host>[:<port>][<path>] glob...
Commands Cookbook
Creating your own custom WP-CLI command can be easier than it looks — and you can use wp scaffol...
Guides
Installing - Recommended and alternative installation mechanisms. Quick start - Where to begin af...
WP_CLI\Utils\write_csv()
Write data as CSV to a given file. Usage WP_CLI\Utils\write_csv( $fd, $rows, $headers = [] ) $fd ...
WP_CLI\Utils\trailingslashit()
Appends a trailing slash. Usage WP_CLI\Utils\trailingslashit( $string ) $string (string) What to ...
WP_CLI\Utils\proc_open_compat()
Windows compatible proc_open(). Works around bug in PHP, and also deals with *nix-like ENV_VAR=...
WP_CLI\Utils\normalize_path()
Normalize a filesystem path. Usage WP_CLI\Utils\normalize_path( $path ) $path (string) Path to no...
WP_CLI\Utils\make_temp_file()
Create a unique temporary file safely without following symlinks. Usage WP_CLI\Utils\make_temp_fi...
WP_CLI\Utils\make_temp_dir()
Create a unique temporary directory safely without following symlinks. Usage WP_CLI\Utils\make_te...
WP_CLI\Utils\is_stream()
Check if a path is a PHP stream URL. Usage WP_CLI\Utils\is_stream( $path ) $path (string) The res...
WP_CLI\Utils\http_request()
Make a HTTP request to a remote URL. Usage WP_CLI\Utils\http_request( $method, $url, $data = null...
WP_CLI\Utils\get_temp_dir()
Get the system's temp directory. Warns user if it isn't writable. Usage WP_CLI\Utils\get_temp_dir...
WP_CLI\Utils\get_php_binary()
Get the path to the PHP binary used when executing WP-CLI. Usage WP_CLI\Utils\get_php_binary() @r...
WP_CLI\Utils\get_home_dir()
Get the home directory. Usage WP_CLI\Utils\get_home_dir() @return (string) Internal API document...
WP_CLI\Utils\get_flag_value()
Return the flag value or, if it's not set, the $default value. Usage WP_CLI\Utils\get_flag_value(...
WP_CLI\Utils\format_items()
Render a collection of items as an ASCII table, JSON, CSV, YAML, list of ids, or count. Usage WP_...
WP_CLI\Utils\esc_like()
First half of escaping for LIKE special characters % and _ before preparing for MySQL. Usage WP_C...