Contents

How create a simple console command extension in Magento 2
What’s your reaction?
Love0
Sad0
Happy0
Sleepy0
Angry1
Dead0
Wink0
Contents
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
…
How do you create a command line? How can you create a custom command line for your Magento project?
In this article, I will guide you on how to create an extension with console command in Magento 2.
Content would be:
Content would be:
Content would be:
Content would be:
Done! Now, you can check it by command line:
php bin/magento magepow:sayhello
If you have any questions or need any help, you can contact us.