Jump to content

[Free Module ] Prestashop Console


Recommended Posts

If you like to manage your website using the commande line interface in order to gain a lot of time, here is a new "module" for prestashop.

 

It's based on the symphony 2 console, and it allow you to make quick changes to your website using the command line.

How to install it

 

Edit 2016-09-16 : Version 0.2.0 is bundled in a single phar file

#download the file from github in your prestashop root directory
wget https://github.com/nenes25/prestashop_console/raw/master/bin/prestashopConsole.phar

#Add execution mode
chmod +x prestashopConsole.phar

#Run the console
./prestashopConsole.phar

Old method

 

Login to your hosting with ssh and go the root directory of your prestashop

 

Clone the github repository in the directory console

 

 

Go into the directory and run composer install

cd console
composer install

 

Then everything is installed and you can run the console with

php console.php
 
For now the folowing actions are available :
 
- install / uninstall / reset / enable / disable modules
- get modules list
- enable / disable cms page
- enable / disable cms category
- enable / disable shop
- enable / disable url rewrite
 
You can find the full list of commands in the folowing page : https://github.com/nenes25/prestashop_console/blob/master/COMMANDS.md
 
Additionnals informations could be found here (in french ) : http://www.h-hennes.fr/blog/2016/05/19/console-prestashop/
All contributions are welcome on github : https://github.com/nenes25/prestashop_console/
 

Please let me know it you find it usefull, it's freely inspired from n98-magerun, a magento cli tool i often use :-)

 

Regards,

Edited by herve25 (see edit history)
  • Like 2

Share this post


Link to post
Share on other sites
  • 1 month later...
  • 4 weeks later...
  • 4 weeks later...

Hello,

 

New version 0.3.0 released today add a great new functionnality
You can now directly install the prestashop version of your choice directly from the commande line.

 

The download of the archive and the installation of prestashop are fully managed from the commande line :-)

php console.php install:install [--psVersion=] [--domainName=] [--dbname=] [--dbuser=] [--dbpassword=][--contactEmail=] [--adminpassword=] [--directory=]

Please let me know if it's usefull or if you want more functionnalities,

 

Regards,
Hervé

Edited by herve25 (see edit history)

Share this post


Link to post
Share on other sites
  • 2 months later...
  • 5 months later...

Hello,

I've mad new improvments on the console tool :

V 0.6.0 : New command to add index.php files in directories
V 0.7.0 : New command for mass configuration object changes
V 0.7.1 : Now works with prestashop 1.7
V 0.7.2 : New Command to download Class Names for autocomplete

 

Let me know if it's usefull :-)

Share this post


Link to post
Share on other sites
  • 1 year later...

Really nice work, thanks! But is it possible to implement image regeneration? This is really useful for shops with a lot of products. Also a product import/update from csv files will be a dream come true :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More