I want to run a cron once a day at midnight so have added this command to crontab -e.

00 00 * * * /usr/local/bin/php /home/../public_html/bin/magento cron:run --group="crongroup"

but not sure what values should use for these fields

<group id="crongroup">







Please let me know which values need to be change in the above code so that cron can run every night without being missed.


1 Answer 1


Checkout https://crontab.guru/, you can find out how to correctly configure your cronjobs

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.