How can I run a specific cron job code in Magento2 instead of running it by group.

2 Answers 2


I think you can use magerun http://n98-magerun.readthedocs.org/en/latest/commands/sys.html#sys-cron-run



Just wanted to add an update on this, I was able to use n98-magerun2 to achieve my requirement, previously it was not working, recently I try it once again and it is now working, guess the issue got fixed :)

  • then accept @Manuel Garcia's answer as he advised you to do so earlier. Apr 28, 2016 at 15:02
  • @JulienLachal the answer provided was for magento 1 not for magento 2 Apr 28, 2016 at 15:24
  • are you 100% sure the command isn't the same then? Apr 28, 2016 at 15:42
  • @JulienLachal you are right the command is the same Apr 28, 2016 at 15:48

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.