> For the complete documentation index, see [llms.txt](https://docs.prestashop-project.org/1.7-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prestashop-project.org/1.7-documentation/italian/guida-introduttiva/installazione-prestashop-con-lo-script-della-riga-di-comando.md).

# Installazione di PrestaShop con lo script della riga di comando

PrestaShop offre anche un programma di installazione per le installazioni da riga di comando.&#x20;

## Che cos'è? <a href="#installazionediprestashopconloscriptdellarigadicomando-checose" id="installazionediprestashopconloscriptdellarigadicomando-checose"></a>

Questo programma di installazione speciale ti permette di installare PrestaShop senza dover utilizzare un browser web: ti basterà inserire il contenuto dell'archivio ZIP sul server web, quindi installare PrestaShop tramite l'interfaccia della riga di comando (CLI). Puoi utilizzare qualsiasi software CLI purché sia compatibile con i comandi del server: Bash, Windows PowerShell, OS X Terminal, PuTTY ecc.

La possibilità di disporre di un programma di installazione CLI oltre al normale programma di installazione nel browser consente di soddisfare le esigenze di alcuni utenti avanzati, che spesso preferiscono le interfacce della riga di comando, in quanto offrono metodi più precisi e avanzati per controllare un programma o un sistema operativo.

## Come utilizzarlo <a href="#installazionediprestashopconloscriptdellarigadicomando-comeutilizzarlo" id="installazionediprestashopconloscriptdellarigadicomando-comeutilizzarlo"></a>

Il programma di installazione CLI è di facile utilizzo: dal terminale, vai alla cartella `/install` (o `/install-dev`) (si presuppone che tu abbia già decompresso il file prestashop.zip) e avvia lo script con questo comando:

```
$ php index_cli.php
```

```
Verranno visualizzate le varie opzioni disponibili.
```

Sono disponibili tutte le normali opzioni del programma di installazione nel browser, con i relativi valori predefiniti. La maggior parte dei valori predefiniti può essere lasciata così com'è, in quanto puoi modificarli tutti nel back office di PrestaShop al termine dell'installazione. Nota: l'indirizzo email e la password corrispondono a quelli utilizzati per creare l'account di back office dell'amministratore.

Per avviare l'installazione, devi specificare soltanto un argomento. In realtà ne devi indicare più di uno:

* **domain**: la posizione in cui desideri visualizzare il tuo negozio.
* **db\_server**: l'indirizzo del server di database.
* **db\_name**: il nome del database che desideri utilizzare.
* **db\_user**: il nome utente del database che desideri utilizzare.
* **db\_password**: la password del nome utente del database indicato sopra.

Ad esempio:

```
$ 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 `--email` value to your own address, a recap e-mail will be sent to you once the installation is done.

## List of arguments <a href="#installazionediprestashopconloscriptdellarigadicomando-listofarguments" id="installazionediprestashopconloscriptdellarigadicomando-listofarguments"></a>

Here is the list of arguments for index\_cli.php as of version 1.6:

| 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        | <pub@prestashop.com> |                                                       |
| --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 |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.prestashop-project.org/1.7-documentation/italian/guida-introduttiva/installazione-prestashop-con-lo-script-della-riga-di-comando.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
