HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

magento — Manage the Magento PHP framework. More information: <https://experienceleague.adobe.com/en/docs/comm

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandframeworkclimagentomanagephp

Problem

How to use the magento command: Manage the Magento PHP framework. More information: <https://experienceleague.adobe.com/en/docs/commerce-operations/tools/cli-reference/commerce-on-premises>.

Solution

magento — Manage the Magento PHP framework. More information: <https://experienceleague.adobe.com/en/docs/commerce-operations/tools/cli-reference/commerce-on-premises>.

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

Code Snippets

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

Context

tldr-pages: common/magento

Revisions (0)

No revisions yet.