Upgrading all module using php bin/magento setup:upgrade require time to complete. I have a local module which I upgraded always so I want to execute update only this module. How do we achieve this?

  • Do you mean composer update or setup:upgrade or something else? Commented Jan 16, 2018 at 13:43
  • I updated the description.
    – Ner
    Commented Jan 17, 2018 at 2:28
  • 2
    You can't use setup:upgrade for specific modules. The optional --keep-generated option should be used only in limited circumstances by experienced system integrators. --keep-generated should never be used in a development environment. if its going really slow, You should fix Your local env. Commented Jan 17, 2018 at 14:49

1 Answer 1


you probably figured this out already. I thought of placing this answer incase someone else runs into the same question.

  1. Make sure you backup the DB and Files

  2. Enable the site maintenance mode

php bin/magento maintenance:enable

  1. Update Module

composer update vendor/module-name

depending the system user you might need to reassign file/directory permissions.

  1. upgrade magento DB and file

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

  1. Recreate DI

php bin/magento setup:di:compile

  1. Deploy static content

php bin/magento setup:static-content:deploy

  1. Clear Cache

php bin/magento cache:clean

  1. Disable the site maintenance mode

php bin/magento maintenance:disable

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.