Create database tables from CLI

Hi everyone,

I want to know if it exist a way of creating all Matomo tables from a migration file or something using CLI.
Please let met know.

Context : I want to start a fresh new instance with config.ini.php already setup with DB credentials.


@innocraft, is it possible?

Hi @ronan_hello ,

The easiest way would be to import the database in to your new server and delete all the websites, by this way all the data gets deleted and config stays.