public cli ( string $userCommand = 'core version', &$output = [] ) : integer | ||
$userCommand | string | The string of command and parameters as it would be passed to wp-cli e.g. a terminal call like `wp core version` becomes `core version` omitting the call to wp-cli script. |
return | integer | wp-cli exit value for the command |