WP-CLI

A command line interface for WordPress

Docs » Internal API » Execution

WP_CLI::runcommand()

Run a WP-CLI command.


Usage

WP_CLI::runcommand( $command, $options = array() )
$command (string) WP-CLI command to run, including arguments.
$options (array) Configuration options for command execution.
@return (mixed)

Notes

Launch a new child process, or run the command in the current process. Optionally:

Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.