最近更新的页面
Contributing
Welcome and thanks! We appreciate you taking the initiative to contribute to WP-CLI. It’s because...
Bug Reports
Think you've found a bug? We'd love for you to help us get it fixed. Before you create a new issu...
WP_CLI\Utils\report_batch_operation_results()
Report the results of the same operation against multiple resources. Usage WP_CLI\Utils\report_ba...
WP_CLI\Utils\parse_str_to_argv()
Parse a string of command line arguments into an $argv-esqe variable. Usage WP_CLI\Utils\parse_st...
WP_CLI\Utils\parse_ssh_url()
Parse a SSH url for its host, port, and path. Usage WP_CLI\Utils\parse_ssh_url( $url, $component ...
WP_CLI\Utils\make_progress_bar()
Create a progress bar to display percent completion of a given operation. Usage WP_CLI\Utils\make...
WP_CLI\Utils\launch_editor_for_input()
Launch system's $EDITOR for the user to edit some text. Usage WP_CLI\Utils\launch_editor_for_inpu...
WP_CLI\Utils\isPiped()
Checks whether the output of the current script is a TTY or a pipe / redirect Usage WP_CLI\Utils\...
WP_CLI\Utils\get_named_sem_ver()
Compare two version strings to get the named semantic version. Usage WP_CLI\Utils\get_named_sem_v...
WP_CLI\Utils\basename()
Locale-independent version of basename() Usage WP_CLI\Utils\basename( $path, $suffix = '' ) $path...
WP_CLI::warning()
Display warning message prefixed with "Warning: ". Usage WP_CLI::warning( $message ) $message (st...
WP_CLI::success()
Display success message prefixed with "Success: ". Usage WP_CLI::success( $message ) $message (st...
WP_CLI::launch()
Launch an arbitrary external process that takes over I/O. Usage WP_CLI::launch( $command, $exit_o...
WP_CLI::has_config()
Confirm that a global configuration parameter does exist. Usage WP_CLI::has_config( $key ) $key (...
WP_CLI::get_config()
Get values of global configuration parameters. Usage WP_CLI::get_config( $key = null ) $key (stri...
WP_CLI::colorize()
Colorize a string for output. Usage WP_CLI::colorize( $string ) $string (string) String to colori...
When /^I launch in the background `([^`]+)`$/
Launch a given command in the background. Usage Scenario: My example scenario Given a WP instal...
When /^I (run|try) the previous command again$/
Run or try the previous command again. Usage run expects an exit code 0, whereas try allows for ...
When /^I (run|try) `([^`]+)`$/
Run or try a given command. Usage run expects an exit code 0, whereas try allows for non-zero ex...
When /^I (run|try) `([^`]+)` from '([^\s]+)'$/
Run or try a given command in a subdirectory. Usage run expects an exit code 0, whereas try allo...