How to run a cron job manually from the command line?

cron
command-line
magerun
sys:cron:run

(Dmitry Fedyuk) #1

Use the sys:cron:run magerun command:

./vendor/n98/magerun2/bin sys:cron:run <cron job name>

An example:


How to generate the sitemap manually from the command line?
(Dmitry Fedyuk) #2

The new syntax is:

./vendor/bin/n98-magerun2 sys:cron:run `<cron job name>`