Magento – no commands defined in the “setup” namespace

magento-2.1

[InvalidArgumentException]
There are no commands defined in the "cache" namespace.
enter image description here

I am using putty to run some commands. if I run
php bin/magento setup:cache
Is there any thing I missed during installation

Best Answer

Please run below commands

rm -Rf var/cache/* generated/*

then

php -f bin/magento cache:flush

php bin/magento indexer:reindex
Related Topic