Installing PrestaShop using the command-line script
Since version 1.5.4, PrestaShop has had a PrestaShop also have a installer for command-line installerinstallations.
What it is
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 CLI installer is easy to use: from your terminal, go to the /install
(or /install-dev
) folder (meaning you have previously unzipped the pestashop.zip file), and start the script with this command:
...
Name | Default setting | Description |
---|---|---|
--step | process | |
--language | en | language iso code |
--timezone | localhost | |
--domain | localhost | |
--db_server | localhost | |
--db_user | root | |
--db_password | (blank) | |
--db_name | prestashop | |
--db_clear | 1 (true) | Drop existing tables |
--db_create | 0 (false) | Create the database if it does not exist yet |
--prefix | ps_ | |
--engine | InnoDB | InnoDB/MyISAM |
--name | PrestaShop | Name of the shop |
--activity | 0 | |
--country | fr | |
--firstname | John | |
--lastname | Doe | |
--password | 0123456789 | |
[email protected] | ||
--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 |