Once running Magento 2 CLI Command
php bin/magento deploy:mode:set developer
& getting error as
There are no command defined in the "deploy:mode" namespace

Solution : This error getting, while Magento 2 Database Configuration file env.php [app/etc/env.php], not available
Once Database Configuration file env.php [app/etc/env.php] available , issue will be resolved.