Magento CLI cheat-sheet
·
120 words
·
1 minute read
Manage the Magento PHP framework.
Enable one or more modules:
magento module:enable module1 module2 ...
Disable one or more modules:
magento module:disable module1 module2 ...
Update the database after enabling modules:
magento setup:upgrade
Update code and dependency injection configuration:
magento setup:di:compile
Deploy static assets:
magento setup:static-content:deploy
Enable maintenance mode:
magento maintenance:enable
Disable maintenance mode:
magento maintenance:disable
List all available commands:
magento list
More information: https://experienceleague.adobe.com/en/docs/commerce-operations/tools/cli-reference/commerce-on-premises .
I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube , Twitter (x) , LinkedIn , and GitHub .