# storeengine/2.2.0/includes/cli.php

StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates &amp; More, version 2.2.0. 40 lines.

- Page: https://pluginprobe.com/plugins/storeengine/2.2.0/code/includes/cli.php
- Raw: https://pluginprobe.com/plugins/storeengine/2.2.0/raw/includes/cli.php
- Modified: 2026-07-09T16:43:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/storeengine/2.2.0/code/includes/cli.php#L10-L20`.

```php
<?php
/**
 * CLI commands for StoreEngine
 * @version 1.0.0
 * @since 1.8.2
 */

namespace StoreEngine;

use StoreEngine\Cli\Account;
use StoreEngine\Cli\License;
use StoreEngine\Cli\Order;
use StoreEngine\Traits\Singleton;
use StoreEngine\Utils\Helper;
use WP_CLI;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Cli {
	use Singleton;

	protected function __construct() {
		add_action( 'cli_init', [ __CLASS__, 'register_cli_commands' ] );
	}

	public static function register_cli_commands() {
		WP_CLI::add_command( 'storeengine order', Order::class );
		WP_CLI::add_command( 'storeengine account', Account::class );
		WP_CLI::add_command( 'storeengine backup', \StoreEngine\Backup\Cli::class );

		if ( Helper::get_addon_active_status( 'license-management', true ) ) {
			WP_CLI::add_command( 'storeengine license', License::class );
		}
	}
}

// End of the file cli.php

```
