CLI_Command::cmd_dump()
Dumps the list of installed commands, as JSON.
EXAMPLES
# Dump the list of installed commands. $ wp cli cmd-dump {"name":"wp","description":"Manage WordPress through the command-line.","longdesc":"\n\n## GLOBAL PARAMETERS\n\n --path=<path>\n Path to the WordPress files.\n\n --ssh=<ssh>\n Perform operation against a remote server over SSH (or a container using scheme of "docker" or "docker-compose").\n\n --url=<url>\n Pretend request came from given URL. In multisite, this argument is how the target site is specified. \n\n --user=<id|login|email>\n
Метод класса: CLI_Command{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$CLI_Command = new CLI_Command(); $CLI_Command->cmd_dump();
Код CLI_Command::cmd_dump() CLI Command::cmd dump WP-CLI 2.8.0-alpha
public function cmd_dump() { echo json_encode( $this->command_to_array( WP_CLI::get_root_command() ) ); }