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)
You can download all the versions of the console (since 1.5) from the release page https://github.com/nenes25/prestashop_console/releases
|1.7.0 to 1.7.8.x|
How to use it
Download the file from github in your prestashop root directory (or from the release page):
Add execution mode:
chmod +x prestashopConsole.phar
Run the console:
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):
You can check the list of commands here: commands.
If you want to contribute please see: contribute.
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