PrestaShop also have a installer for command-line installations.
This special installer makes it possible to install PrestaShop without the need to use a web browser: simply put the content of the zip archive on your web server, and you can install PrestaShop through your command-line interface (CLI). Any CLI software can be used as long as you can use it to interact with the server's commands: Bash, Windows PowerShell, OS X Terminal, PuTTY, etc.
The point of having a CLI installer in addition to the regular in-browser installer is to give this option to cater for some advanced users, who often prefer command-line interfaces as they tend to provide a more concise and powerful means to control a program or operating system.
The CLI installer is easy to use: from your terminal, go to the
/install-dev) folder (meaning you have previously unzipped the pestashop.zip file), and start the script with this command:
$ php index_cli.php
This will display the various available options.
All the options from the regular in-browser installer are available, with their default value listed. Almost all default values can be left as is, because you can edit them all from the PrestaShop back office once the installation is done. Note that the e-mail and password are the ones used to create the administrator's back office account...
To start the installation, you only need to provide one argument. In reality, you need to provide more:
$ php index_cli.php --domain=example.com --db_server=sql.example.com --db_name=prestashop --db_user=root --db_password=123456789
If you also set the
Here is the list of arguments for index_cli.php as of version 1.6:
|--language||en||language iso code|
|--db_clear||1 (true)||Drop existing tables|
|--db_create||0 (false)||Create the database if it does not exist yet|
|--name||PrestaShop||Name of the shop|
|--license||0 (false)||Show PrestaShop's license|
|--newsletter||1 (true)||Subscribe administrator to PrestaShop's newsletter|
|--send_email||1 (true)||Send an email to the administrator after installation|
|--all_languages||0 (false)||Install all the existing languages on the shop|
|--ssl ||0 (false)||(From PS 1.7.4) Enable HTTPS on the shop|