# Unattended Install via Command Line

**URL:** <https://forum.mautic.org/t/unattended-install-via-command-line/7116>\
**Category:** Product Support\
**Created:** [January 10, 2017, 5:13pm UTC](https://forum.mautic.org/t/unattended-install-via-command-line/7116 "2017-01-10T17:13:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![spatialy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/spatialy/32/723_2.png) [@spatialy](https://forum.mautic.org/u/spatialy)\
**Post date:** [January 10, 2017, 5:13pm UTC](https://forum.mautic.org/t/unattended-install-via-command-line/7116/1 "2017-01-10T17:13:11Z")

</div>

Hi all  
  
  
  
We are working on a new docker Mautic image.  
  
  
  
Right know with are able to install Mautic in the first instance as usual: manual mode via the web install … Now, to scale to more instances we need to rework the script and make a silent install passing the configuration parameters (DB\_HOST, DB\_NAME, DB\_USER, DB\_PASSWORD, LOCAL.PHP … ???)  
  
  
  
Any ideas on how to achieve this?

---

<div class="post-metadata">

**Author:** ![spatialy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/spatialy/32/723_2.png) [@spatialy](https://forum.mautic.org/u/spatialy)\
**Post date:** [January 10, 2017, 5:13pm UTC](https://forum.mautic.org/t/unattended-install-via-command-line/7116/2 "2017-01-10T17:13:11Z")

</div>

Hi all

We are working on a new docker Mautic image.

Right know with are able to install Mautic in the first instance as usual: manual mode via the web install … Now, to scale to more instances we need to rework the script and make a silent install passing the configuration parameters (DB\_HOST, DB\_NAME, DB\_USER, DB\_PASSWORD, LOCAL.PHP … ???)

Any ideas on how to achieve this?

---

<div class="post-metadata">

**Author:** ![Dude4Linux](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@Dude4Linux](https://forum.mautic.org/u/Dude4Linux)\
**Post date:** [August 15, 2017, 12:51pm UTC](https://forum.mautic.org/t/unattended-install-via-command-line/7116/3 "2017-08-15T12:51:09Z")

</div>

I’m looking for the same information. Did you ever find a solution?

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [August 17, 2017, 2:36pm UTC](https://forum.mautic.org/t/unattended-install-via-command-line/7116/4 "2017-08-17T14:36:29Z")

</div>

Are you trying to do a Mautic Cloud Clone?

---

<div class="post-metadata">

**Author:** ![heathdutton](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/heathdutton/32/243_2.png) [@heathdutton](https://forum.mautic.org/u/heathdutton)\
**Post date:** [November 30, 2017, 9:37pm UTC](https://forum.mautic.org/t/unattended-install-via-command-line/7116/5 "2017-11-30T21:37:44Z")

</div>

I was interested in the same thing for local testing.  
Found a better way:

```auto
php app/console doctrine:database:create
php app/console mautic:install:data --force
php app/console doctrine:migrations:version --add --all --no-interaction
```

---

<div class="post-metadata">

**Author:** ![heathdutton](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/heathdutton/32/243_2.png) [@heathdutton](https://forum.mautic.org/u/heathdutton)\
**Post date:** [November 30, 2017, 10:07pm UTC](https://forum.mautic.org/t/unattended-install-via-command-line/7116/6 "2017-11-30T22:07:19Z")

</div>

To recap, the first line creates the database (based on the app/config/local.php file).  
The second inserts the default schema and data, AND creates the primary users.  
The third updates the migrations table so that future updates won’t choke.
