I wanted to create logs of upgrade command under var/log folder:

php bin/magento setup:upgrade

Please help me.

1 Answer 1


You can use below command:

bin/magento setup:upgrade >> /var/www/html/magento2/var/log/update.cron.log

It may help you.

  • 1
    It worked. Thankyou :)
    – temper
    Commented Dec 3, 2019 at 4:39

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.