Magento2 – Get the Right PHP Command to Run Module

magento2

i just installed the XAMPP in my localhost. Can i know how do i able to run the following command in my localhost?

$ php bin/magento module:enable xxx...

My xampp command prompt is always showing '#', how do i convert that to '$'? It always say the PHP is not recognized as the internal or external command. I have tried navigate to xampp/php/php.exe but it does not trigger the php command either.

Best Answer

From the XAMPP control panel you click the 'Shell' button. In the console prompt, type cd htdocs/{magento-directory} using the name of your magento directory. Now you can enter the command :

php bin/magento module:enable {module-name}

Related Topic