Video Lesson: Activate modules with the CLI in Magento

Activate modules with the CLI in Magento

This is premium content

Only available to enrolled or University students.
Join today to unlock all lessons in this course.

Activate modules with the CLI in Magento

Activate or disable Magento modules safely using the CLI to manage dependencies and update app/etc/config.php automatically.

Lesson Content

Magento tracks which modules are active in the app/etc/config.php file. This file contains a big PHP array that maps the module names to their status:

return [
    'modules' => [
        'SomeVendor_SomeModule' => 0, // Disabled module
        'AnotherVendor_Module' => 1,  // Enabled module
    ]
];

While you could edit this file directly, this isn’t a good idea. This is because the order in which modules are added to this file is important.

It's much safer to use the CLI commands instead:

bin/magento module:enable AnotherVendor_Modu...

Premium content

Enroll to unlock the full content and all course materials.

👋
Maggie

Log in to start chatting!

Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Want to chat with Maggie?

Enroll in this course for AI tutor access.

Comments

Join the discussion!

Comments

Want to comment on this lesson?

Enroll in this course to leave comments.