Child pages
  • Instalación de PrestaShop utilizando la secuencia de línea de comandos
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Instalación de PrestaShop utilizando la secuencia de línea de comandos

Desde la versión 1.5.4, PrestaShop cuenta con un instalador de línea de comandos.

¿Qué es esto?

Este instalador especial hace posible la instalación de PrestaShop sin la necesidad de utilizar un navegador web: simplemente coloque el contenido del archivo zip en su servidor web, y podrá instalar PrestaShop a través de su interfaz de línea de comandos (CLI). Puede utilizar cualquier software CLI para interactuar con los comandos del servidor: Bash, Windows PowerShell, X Terminal OS, PuTTY, etc.

El interés de tener un instalador CLI además de la instalación típica (a través del navegador) es el de poder satisfacer las expectativas de algunos usuarios avanzados, ya que tienden a proporcionar un medio más conciso y potente para controlar algún programa o sistema operativo.

¿Cómo utilizarlo?

El instalador CLI es muy sencillo de utilizar: desde su terminal, diríjase a la carpeta /install (o /install-dev), e iniciar el script con este comando:

$ php index_cli.php

Al ejecutar este comando, se mostrarán las distintas opciones disponibles.

Todas las opciones del instalador clásico están disponibles, con sus valores por defecto claramente indicados. Casi todo valor valores por defecto se pueden dejar como están, 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:

  • 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 above.

For instance:

$ php install_cli.php --domain=example.com --db_server=sql.example.com --db_name=prestashop --db_user=root --db_password=123456789

If you also set the --email value to your own address, a recap e-mail will be sent to you once the installation is done.

List of arguments

Here is the list of arguments for index_cli.php as of version 1.6:

NameDefault settingDescription
--stepprocess 
--languageenlanguage iso code
--timezonelocalhost 
--domainlocalhost 
--db_serverlocalhost 
--db_userroot 
--db_password(blank) 
--db_nameprestashop 
--db_clear1 (true)Drop existing tables
--db_create0 (false)Create the database if it does not exist yet
--prefixps_ 
--engineInnoDBInnoDB/MyISAM
--namePrestaShopName of the shop
--activity0 
--countryfr 
--firstnameJohn 
--lastnameDoe 
--password0123456789 
--email[email protected] 
--license0 (false)Show PrestaShop's license
--newsletter1 (true)Subscribe administrator to PrestaShop's newsletter
--send_email1 (true)Send an email to the administrator after installation
  • No labels