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

That plugin hasn’t been updated since 2020. Does it still work with an up-to-date version of Mautic?

From my experience this is working until 4.x
I have not tried it with 5.x or 6, as it is I do not think many plugins will be ported to 6 as this is going to be such a short release.