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 you have read our privacy policy.

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