Basics
setup:upgrade¶
$ bin/magento setup:upgrade [--keep-generated] [--convert-old-scripts [CONVERT-OLD-SCRIPTS]] [--safe-mode [SAFE-MODE]] [--data-restore [DATA-RESTORE]] [--dry-run [DRY-RUN]] [--magento-init-params MAGENTO-INIT-PARAMS]
Upgrade allows Magento to check for new modules and register them.
Modules are not listed in
app/etc/modules
any more.It will also apply data/schema changes like
sys:setup:run
(Magento 1).
setup:di:compile¶
$ bin/magento setup:di:compile
Magento commands¶
You will need to run these commands every time you install a new module
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy en_GB en_US