hhennes/prestashop-console

There is no license information available for the latest version (v0.5.1) of this package.

Tools to manage your prestashop with CLI

v0.5.1 2017-01-12 11:18 UTC

This package is auto-updated.

Last update: 2024-11-13 20:44:45 UTC


README

GitHub stars GitHub forks Github All Releases

PrestaShop cli tools based on Symfony Console component You can read more about it : http://www.h-hennes.fr/blog/2016/05/19/console-prestashop/ (FR)

PrestaShop console

Releases

You can download all the versions of the console (since 1.5) from the release page https://github.com/nenes25/prestashop_console/releases

Compatibility

How to use it

Download the file from github in your prestashop root directory (or from the release page):

wget https://github.com/nenes25/prestashop_console/releases/latest/download/prestashopConsole.phar

Add execution mode:

chmod +x prestashopConsole.phar

Run the console:

./prestashopConsole.phar

You can also add the phar globaly by adding it in your /usr/local/bin directory:

sudo mv prestashopConsole.phar /user/local/bin/prestashopConsole

Then run it with (only work in PrestaShop root directories):

prestashopConsole

You can check the list of commands here: commands.

If you want to contribute please see: contribute.

Browser version

If no cli is available on your hosting, and if the php exec and shell_exec functions are enabled.
You can use and download the file prestashopConsoleWrapper.php as a wrapper to run some commands directly from the browser.
This wrapper is limited and cannot interact with the console. All parameters should be passed through the url

Here are some examples :

Show help of the command admin:user:list
prestashopConsoleWrapper.php?command=admin:user:list&options[]=help
List only active modules
prestashopConsoleWrapper.php?command=module:list&options[]=active
List only active modules not from prestashop
prestashopConsoleWrapper.php?command=module:list&options[]=active&options[]=no-native