Magento – no commands defined in the “setup” namespace magento-2.1 [InvalidArgumentException] There are no commands defined in the "cache" namespace. 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 SolutionsMagento 2.1 – How to Modify style.css You need to change in style.less or style.css in your theme folder and then deploy content as follows. php bin/magento setup:static-content:deploy You need to run above command from Magento 2 root directory. Magento – no commands defined in the “setup” namespace. in Magento2 Run php bin/magento list command. It will listed all the magento 2 commands interface if everything working correctly. If something is going wrong, this will also give you error message that why it is failing. You can check with https://magento.stackexchange.com/a/91696/1905 also. Related Topic
Best Answer
Please run below commands
then