I have run setup:upgrade and Magento has run the composer update command automatically.

Can we restrict this?

1 Answer 1


Try this :

php bin/magento setup:upgrade --keep-generated

It will keep generated folder without recreating it and hence the dependencies which update during this will be skipped.

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.