The fields service config can break console commands that use the fields service because when running on the console the object returned by Craft::$app->getUser() is craft\console\User and not craft\web\User. Since you are generally running console commands as admin, configuring the fields service to run only in the web context solves this issue.
The fields service config can break console commands that use the fields service because when running on the console the object returned by
Craft::$app->getUser()
iscraft\console\User
and notcraft\web\User
. Since you are generally running console commands as admin, configuring the fields service to run only in the web context solves this issue.Fixes #13