Pantheon\Terminus\Commands\Remote\WPCommand::wpCommand PHP Method

wpCommand() public method

Run an arbitrary WP-CLI commands on a site's environment
public wpCommand ( string $site_env_id, array $wp_command ) : string
$site_env_id string Name of the environment to run the WP-CLI command on.
$wp_command array WP-CLI command to invoke on the environment
return string Output of the given WP-CLI command executed on the site environment
    public function wpCommand($site_env_id, array $wp_command)
    {
        $this->prepareEnvironment($site_env_id);
        return $this->executeCommand($wp_command);
    }
WPCommand