I have created a command for my module which calls a class Model/Importer from https://github.com/firegento/FireGento_FastSimpleImport2 extension. but i think it requires admin session.
I have tried to add area code by referring to this question 'Area code not set' issue in custom CLI commands in Magento 2
But still after clearing everything from
var folder, i am getting the same exception.