yireo/magento2-theme-commands
最新稳定版本:1.3.4
Composer 安装命令:
composer require yireo/magento2-theme-commands
包简介
CLI commands to manipulate themes
README 文档
README
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.
统计信息
- 总下载量: 30.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2023-06-16