yireo/magento2-theme-commands

用于操作主题的CLI命令

安装次数: 7,512

依赖项: 1

建议者: 0

安全性: 0

星标: 12

关注者: 4

分支: 3

开放性问题: 0

类型:magento2-module

1.3.0 2024-07-01 14:42 UTC

This package is auto-updated.

Last update: 2024-08-31 14:56:53 UTC


README

Magento 2模块,用于从命令行添加管理主题的CLI命令

安装

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

使用方法

列出所有主题

bin/magento theme:list

列出所有分配的主题(即设计配置)

bin/magento theme:design_config

输出theme:design_config还显示了Override列,该列用于标识特定值(如特定商店视图的主题ID)是否确实覆盖了默认值。

将当前主题更改为所有作用域的Magento/luma

bin/magento theme:change Magento/luma

注意,theme:change命令还包括一个标志--reset(仅在没有其他参数的情况下有效),它将所有商店重置为默认值,因此只有1个主题是活动的

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

将当前主题更改为ID为1的商店视图的Hyva/default

bin/magento theme:change Hyva/default 1 stores

创建一个新的主题

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