how I can install the Magento 2 custom created Module using Command line in localhost.

php bin/magento:enable vendor_modulename

tried this but not work

1 Answer 1


You can just run command below,

php bin/magento setup:upgrade

Remove var folder and check.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.