When I run the server using php bin/console server:run I get the following error. There are no commands defined in the \"server\" namespace.
php bin/console server:run
There are no commands defined in the \"server\" namespace.
I had same issue on Symfony 4 after switching in .env to prod. Some commands are not visible on prod.
.env
You either need to swap to dev or: bin/console --env=dev
bin/console --env=dev
And so to start server: bin/console --env=dev server:run 0.0.0.0:8005
bin/console --env=dev server:run 0.0.0.0:8005