Installing PrestaShop 8 using the command-line script
PrestaShop also has an installer for command-line installations.
Last updated
Was this helpful?
PrestaShop also has an installer for command-line installations.
Last updated
Was this helpful?
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 to 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
(or /install-dev
) folder (meaning you have previously unzipped the prestashop.zip file), and start the script with this command:
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.
To start the installation, you need to 5 arguments:
domain. The location where you want your store to appear.
db_server. The database server address.
db_name. The name of the database you want to use.
db_user. The username for the database you want to use.
db_password. The password for the database username used above.
For instance:
Here is the list of arguments for index_cli.php
as of version 8:
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 store
--activity
0
--country
fr
--firstname
John
--lastname
Doe
--password
0123456789
--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