I wanted to add an answer because others do not cover all the problems that might cause this error:
There are no commands in the setup namespace.
generally.
This error may be caused by permission, as said in other answers, but we may have a different scenario.
- Missing: etc / module.xml
- Error in /etc/module.xml or in /etc/di.xml or other xml extensions under / etc
If you know another scenario, comment on this answer.
Hope this help.
source share