Theme Commands
yireo/magento2-theme-commands
Adds CLI commands to manage Magento 2 themes. Allows listing, assigning, and creating themes from the command line.
Supported Magento versions: 2.4.9
44,097 installs★ 13 starsLatest: v1.3.4Released 2025-10-22License: OSL-3.0
composer require yireo/magento2-theme-commandsREADME
Reproduced from the package’s own README, under its own license, as of 2026-09-13. Links and images point back at the source repository.
Magento 2 module to add CLI commands to manage themes from the command-line
composer require yireo/magento2-theme-commands bin/magento module:enable Yireo_ThemeCommands
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
When you reset to a custom theme, and recepeive an error like:
bin/magento theme:change --reset <vendor/<theme> Not enough arguments (missing: "theme_name"). theme:change [--reset [RESET]] [--] <theme_name> [<scope> [<scope_id>]]
you'll need to use the following command;
bin/magento theme:change --reset Magento/luma <vendor/<theme>
Change the current theme to Hyva/default for the StoreView with ID 1:
bin/magento theme:change Hyva/default stores 1
Create a new theme:
bin/magento theme:create --theme Yireo/example --parent Magento/luma --application frontend bin/magento theme:change Yireo/example
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.
Links
- Packagist
- PackageMaven — quality data by PackageMaven
- Repository
- Issues