Jump to content


Photo

How to Create Console Command in Magento 2


  • Please log in to reply
No replies to this topic

#1 Meetanshi

Meetanshi

    Advanced Member

  • Members
  • PipPipPip
  • 535 posts

Posted 21 October 2020 - 12:05 PM

There are certain tasks in Magento2 that are repetitive such as running a custom cron after a fixed time period, or remove a directory after caching.

You can turn many of these boring processes into one-command affairs by using the method to create console command in Magento 2.

 

The custom console commands in Magento 2 are very helpful when you want to perform tasks that are repetitive and are to be done in the same manner every time!
 

For more details, visit https://meetanshi.com/blog/create-console-command-in-magento-2/



looking for the best presta addons with outstanding support? check this: PrestaShop Modules