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
Method of the class: CLI_Command{}
No Hooks.
Returns
null. Nothing (null).
Usage
$CLI_Command = new CLI_Command(); $CLI_Command->cmd_dump();
CLI_Command::cmd_dump() CLI Command::cmd dump code WP-CLI 2.13.0-alpha
public function cmd_dump() {
echo json_encode( $this->command_to_array( WP_CLI::get_root_command() ) );
}