helper/data.php
change line 69 to \Magento\Framework\Url $frontUrlModel,
add line below 69 \Magento\Framework\App\State $state)
after parent::__construct($context);
add line $state->setAreaCode('frontend'); // or 'adminhtml', depending on your needs
This will resolve not being able to execute commands in CLI on Magento 2.2.1
Never done this before so I hope this is the proper format.
helper/data.php
change line 69 to
\Magento\Framework\Url $frontUrlModel,add line below 69
\Magento\Framework\App\State $state)after
parent::__construct($context);add line
$state->setAreaCode('frontend'); // or 'adminhtml', depending on your needsThis will resolve not being able to execute commands in CLI on Magento 2.2.1
Never done this before so I hope this is the proper format.