Questions tagged [area-code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
62
votes
11answers
74k views

'Area code not set' issue in custom CLI commands in Magento 2

I'm getting following error while updating data through CustomerRepositoryInterface [Magento\Framework\Exception\SessionException] Area code not set: Area code must be set before starting a ...