Import contact from command line

My Mautic version is: 4.1.2

Hello,

I’m trying to import data from a bash script, I would like to import contacts (firstname,email) from a csv file and add them to a segment.
It seems that ./console mautic:import is the solution but I do not find any documentation ? I found some old question about put csv in app/cache/import/ but folder does not exist and if I create it, csv is not recognized when I run mastic:import.

Thank you
Romain

Not a problem anymore, I did it with API

there is a plugin that will help out with this if you need in the future. https://github.com/mtcextendee/mautic-custom-import-bundle

1 Like