protected function __construct() { $command = new PS_CLI_Command('email', 'Manage email configuration'); $command->addOpt('show-status', 'Show email configuration'); $command->addOpt('update', 'Update a configuration value')->addOpt('option', 'The configuration key to update')->addOpt('value', 'Value to give to the configuration key'); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('customer', 'Manage PrestaShop customers'); $command->addOpt('list', 'List customers', false, 'boolean'); $command->addOpt('anonimize', 'anonimize customers', false, 'boolean'); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('autoupgrade', 'Manage autoupgrade plugin'); $command->addOpt('show-status', 'Show configuration', false, 'boolean'); //$command->register($this); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('localization', 'Manage PrestaShop localizations'); $command->addOpt('list-languages', 'List installed languages', false)->addOpt('import', 'Import localization', false)->addOpt('enable', 'Enable language', false)->addOpt('disable', 'Disable language', false)->addArg('<iso-code>', 'Iso code of language', false); $prefCommand = new PS_CLI_Command('localization-preferences', 'Manage PrestaShop localization preferences'); $prefCommand->addOpt('show-status', 'Show localization preferences', false, 'boolean')->addOpt('update', 'Update localization configuration', false, 'boolean')->addOpt('key', 'Configuration key to update', false, 'string')->addOpt('value', 'Value to assign', false, 'string'); $this->register_command($command); $this->register_command($prefCommand); }
protected function __construct() { $command = new PS_CLI_Command('modules', 'Manage PrestaShop modules'); $command->addOpt('enable', 'Enable module', false, 'string')->addOpt('disable', 'Disable module', false, 'string')->addOpt('reset', 'Reset module', false, 'string')->addOpt('list', 'List modules', false, 'string')->addOpt('install', 'Install module', false, 'string')->addOpt('uninstall', 'Uninstall module', false, 'string')->addOpt('upgrade', 'Upgrade modules from PrestaShop addons', false)->addOpt('upgrade-db', 'Run modules database upgrades', false)->addOpt('download', 'Download a module', false, 'string')->addOpt('show-status', 'Show module configuration', false)->addArg('<modulename>', 'The module to activate', true); $prefCommand = new PS_CLI_Command('modules-preferences', 'Manage modules preferences'); $prefCommand->addOpt('show-status', 'Show module configuration', false, 'boolean')->addOpt('update', 'Update configuration value', false, 'boolean')->addOpt('key', 'Configuration key to update', false, 'string')->addOpt('value', 'Value to assign to the configuration key', false, 'string'); $this->register_command($command); $this->register_command($prefCommand); }
protected function __construct() { $command = new PS_CLI_Command('autoupgrade', 'Manage autoupgrade plugin'); $command->addOpt('check-version', 'Check PrestShop version', false, 'boolean')->addOpt('list-modified-files', 'List files modified locally', false, 'boolean')->addOpt('upgrade-core', 'Upgrade PrestaShop core using autoupgrade module', false, 'boolean'); $prefCommand = new PS_CLI_Command('autoupgrade-preferences', 'Manage autoupgrade plugin configuration'); $prefCommand->addOpt('show-status', 'Show configuration', false, 'boolean')->addOpt('update', 'Update a configuration key', false, 'boolean')->addOpt('key', 'Configuration key to update', false, 'string')->addOpt('value', 'Value to assign to the configuration key', false, 'string'); $this->register_command($command); $this->register_command($prefCommand); $configuration = PS_CLI_Configure::getConfigurationInstance(); //PS_CLI_Hooks::registerHook(__CLASS__.'::disablePsCoreLoad'); $this->registerHook('before_load_ps_core', 'disablePsCoreLoad'); $modulePath = $configuration->psPath . 'modules' . DIRECTORY_SEPARATOR . 'autoupgrade'; $upgraderFile = '../' . $modulePath . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'Upgrader.php'; if (file_exists($upgraderFile)) { //require_once($upgraderFile); } }
protected function __construct() { $command = new PS_CLI_Command('theme', 'Manage PrestaShop themes'); $command->addOpt('list', 'List installed themes', false, 'boolean')->addOpt('list-available', 'List available themes', false, 'boolean')->addOpt('install-zip', 'Install theme from Zip archive', false, 'string')->addOpt('activate', 'Install theme', false, 'integer')->addArg('theme', 'Theme id', false); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('profile', 'Manage PrestaShop profiles'); $command->addOpt('list', 'List profiles', false)->addOpt('delete', 'Delete a profile', false, 'integer')->addOpt('list-permissions', 'List a profile permissions', false, 'integer')->addArg('<ID>', 'Profile ID', false); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('customer-preferences', 'PrestaShop customers preferences'); $command->addOpt('show-status', 'Show current customer preferences', false)->addOpt('update', 'Update a configuration value')->addOpt('option', 'Configuration key to update')->addOpt('value', 'value to give to the configuration key'); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('image', 'Manage PrestaShop images'); $command->addOpt('list', 'List images', false)->addOpt('regenerate-thumbs', 'Regenerate thumbnails', false)->addOpt('category', 'Specify images category for thumbnails regeneration (all, products, categories, manufacturers, suppliers, scenes, stores)', false, 'string')->addOpt('keep-old-images', 'Keep old images', false)->addOpt('show-status', 'Show configuration', false)->addOpt('update', 'Update configuration value', false, 'boolean')->addOpt('key', 'Configuration key to update', false, 'string')->addOpt('value', 'Value to assign to the configuration key', false, 'string'); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('employee', 'Manage PrestaShop employees'); $command->addOpt('list', 'List employees', false, 'boolean')->addOpt('delete', 'Delete an employee', false, 'string')->addOpt('disable', 'Disable an employee', false, 'string')->addOpt('enable', 'Enable an employee', false, 'string')->addOpt('create', 'Create an employee', false, 'string')->addOpt('edit', 'Edit an employee', false, 'string')->addArg('<email address>', 'Employee email address', false)->addOpt('password', 'Employee password', false, 'string')->addOpt('profile', 'Employee profile', false, 'integer')->addOpt('first-name', 'Employee first name', false, 'string')->addOpt('last-name', 'Employee last name', false, 'string'); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('export', 'Export PrestaShop data'); $command->addOpt('categories', 'export catalog categories', false)->addOpt('products', 'export products', false)->addOpt('customers', 'export customers', false)->addOpt('manufacturers', 'export manufacturers', false)->addOpt('suppliers', 'export suppliers', false)->addOpt('orders', 'export orders', false)->addOpt('csv', 'export in CSV format', false)->addArg('data', 'Data to export (categories, products, manufacturers, suppliers, scenes, stores)', false); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('core', 'Manage PrestaShop core'); $command->addOpt('check-version', 'check for available updates', false)->addOpt('list-modified-files', 'List modified files', false)->addOpt('show-info', 'Show server configuration', false)->addOpt('show-version', 'Show PrestaShop version', false); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('order-preferences', 'PrestaShop orders preferences'); $command->addOpt('show-status', 'Show current order configuration', false); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('shop', 'Control shop'); $command->addOpt('enable', 'Turn off maintenance mode on the shop', false)->addOpt('disable', 'Turn on maintenance mode on the shop', false); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('product-preferences', 'PrestaShop products preferences'); $command->addOpt('show-status', 'Show current products preferences', false); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('db', 'Perform database operations'); $command->addOpt('backup', 'Create a backup', false, 'boolean')->addOpt('skip-stats', 'Skip stats tables on backup', false, 'boolean')->addOpt('list', 'List backups', false, 'boolean'); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('preferences', 'Set up PrestaShop preferences'); $command->addOpt('show-status', 'Show preferences configuration')->addOpt('update', 'Update configuration value', false, 'boolean')->addOpt('key', 'Configuration key to update', false, 'string')->addOpt('value', 'Value to assign to the configuration key', false, 'string'); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('multistore', 'Perform Multistore operations'); $command->addOpt('list-shops', 'List shops', false)->addOpt('list-groups', 'List shop groups', false)->addOpt('create-group', 'Create a shop group', false)->addOpt('enable-multistore', 'Enable multistore feature', false)->addOpt('disable-multistore', 'Disable multistore feature', false)->addOpt('active', '', false)->addOpt('share-customers', 'share customers', false, 'boolean')->addOpt('share-orders', 'share orders', false, 'boolean')->addOpt('share-stock', 'share stock', false, 'boolean')->addOpt('name', 'name', false, 'string'); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('search-preferences', 'PrestaShop search preferences'); $command->addOpt('show-status', 'Show current search configuration', false)->addOpt('list-aliases', 'List search aliases', false)->addOpt('add-alias', 'Add a search alias', false)->addOpt('alias', 'Alias to define', false, 'string')->addOpt('search', 'Search keyword', false, 'string')->addOpt('delete-alias', 'Delete an alias', false, 'integer')->addOpt('enable-alias', 'Enable an alias', false, 'integer')->addOpt('disable-alias', 'Disable an alias', false, 'integer')->addOpt('update', 'Update a configuration value', false, 'boolean')->addOpt('key', 'Configuration key to update', false, 'string')->addOpt('value', 'Value to assign to the configuration key', false, 'string'); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('ccc', 'Manage CCC configuration'); $command->addOpt('show-status', 'Show configuration status')->addOpt('update', 'Update a configuration value')->addOpt('key', 'Configuration key to update')->addOpt('value', 'Value to assign to the configuration key')->addOpt('clear-cache', 'Clear smarty cache', false)->addOpt('disable-cache', 'Disable PrestaShop cache', false)->addOpt('enable-cache', 'Enable PrestaShop cache', false, 'string')->addOpt('cache-depth', 'Set cache depth (default 1)', false, 'integer')->addArg('<cachetype>', 'Cache to use (fs, memcache, xcache, apc)', false); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('cms', 'Manage CMS addOptions'); $command->addOpt('list-categories', 'List categories', false, 'boolean')->addOpt('list-pages', 'List pages', false, 'boolean')->addOpt('delete-page', 'Delete page', false, 'integer')->addOpt('disable-page', 'Disable a page', false, 'integer')->addOpt('enable-page', 'Enable a page', false, 'integer')->addOpt('enable-category', 'Enable a category', false, 'integer')->addOpt('disable-category', 'Disable a category', false, 'integer')->addOpt('create-category', 'Create a category', false, 'boolean')->addOpt('delete-category', 'Delete a category', false, 'integer')->addOpt('name', 'Name of the category to create', false, 'string')->addOpt('parent', 'Id of the parent category', false, 'integer')->addOpt('link-rewrite', 'Link rewrite', false, 'string')->addOpt('meta_title', 'Meta title', false, 'string')->addOpt('meta_description', 'Meta description', false, 'string')->addOpt('meta_keywords', 'Meta keywords', false, 'string')->addOpt('description', 'Description of the category', false, 'string')->addArg('<ID>', 'Category or page ID', false); $this->register_command($command); }
protected function __construct() { $command = new PS_CLI_Command('employee-preferences', 'Manage PrestaShop employees preferences'); $command->addOpt('show-status', 'Show employee configuration', false, 'boolean')->addOpt('update', 'Update a configuration key', false, 'boolean')->addOpt('key', 'Configuration key to update', false, 'string')->addOpt('value', 'Value to give to the configuration key', false, 'string'); $this->register_command($command); }