Actively Maintained v1.3.4

Magento2 Theme Commands

yireo/magento2-theme-commands

Adds CLI commands to manage Magento 2 themes. Allows listing, assigning, and creating themes from the command line.

30,109
Downloads
Below average
13
GitHub Stars
Below average
2mo ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
47 warnings
L1 PHPStan

Tested on Magento 2.4.8-p3

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.3.4 on Magento 2.4.8-p3
Dec 27, 2025
GitHub Repository
Source code & docs
Packagist
Version history
Issues & Support
Get help or report bugs

Share This Module's Status

Magento2 Theme Commands Magento compatibility status badge

README

Loaded from GitHub

Yireo_ThemeCommands module

Magento 2 module to add CLI commands to manage themes from the command-line

Installation

composer require yireo/magento2-theme-commands
bin/magento module:enable Yireo_ThemeCommands

Usage

List all themes:

bin/magento theme:list

List all assigned themes (aka design configurations):

bin/magento theme:design_config

The theme:design_config output also shows an Override column, which identifies whether a specific value (like, a theme ID for a specific Store View) is indeed overriding the default or not.

Change the current theme to Magento/luma for all scopes:

bin/magento theme:change Magento/luma

Note that the theme:change command also includes a flag --reset (valid only without additional parameters) which resets all stores to the default, so that only 1 theme is active:

bin/magento theme:change --reset -- Magento/luma

Change the current theme to Hyva/default for the StoreView with ID 1:

bin/magento theme:change Hyva/default 1 stores

Create a new theme:

bin/magento theme:create --theme Yireo/example --parent Magento/luma --application frontend
bin/magento theme:change Yireo/example

Caveats

When a new theme has been created, it might have not been discovered by Magento. For instance, the output of the theme:list command is not showing this new theme. Run bin/magento setup:upgrade first.

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.

Back to All Modules