CLI_Command::version()publicWP-CLI 1.0

Prints WP-CLI version.

EXAMPLES

# Display CLI version.
$ wp cli version
WP-CLI 0.24.1

Method of the class: CLI_Command{}

No Hooks.

Return

null. Nothing.

Usage

$CLI_Command = new CLI_Command();
$CLI_Command->version();

CLI_Command::version() code WP-CLI 2.7.0-alpha

public function version() {
	WP_CLI::line( 'WP-CLI ' . WP_CLI_VERSION );
}