setup:upgrade
Upgrades the Magento application, database data, and schema. Run after enabling a module, after composer update, and as part of every deploy.
Synopsis
bin/magento setup:upgradeExamples
Standard upgrade. Required after module:enable or any composer change.
bin/magento setup:upgradeProduction-deploy variant — di:compile already ran, don't re-do it.
bin/magento setup:upgrade --keep-generatedSee also
Related commands in setup
Other setup:* commands you might want next.
setup:backup
Takes backup of Magento Application code base, media and database
setup:config:set
Creates or modifies the deployment configuration
setup:db-data:upgrade
Upgrades only the database data (without schema changes).
setup:db-declaration:generate-patch
Generates a data or schema patch class skeleton inside a module's Setup/Patch/ directory.
setup:db-declaration:generate-whitelist
Generates a db_schema_whitelist.json file alongside the module's db_schema.xml. Run after editing db_schema.xml.
setup:db-schema:upgrade
Upgrades only the database schema (without data fixes). Used for staged upgrades.
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.