diff --git a/.github/workflows/magento-compatibility.yml b/.github/workflows/magento-compatibility.yml index a4b8fdf6..a4790589 100644 --- a/.github/workflows/magento-compatibility.yml +++ b/.github/workflows/magento-compatibility.yml @@ -145,6 +145,7 @@ jobs: bin/magento mageforge:theme:watch --help bin/magento mageforge:theme:clean --help bin/magento mageforge:theme:inspector --help + bin/magento mageforge:template:override --help bin/magento mageforge:hyva:compatibility:check --help bin/magento mageforge:hyva:tokens --help @@ -160,6 +161,7 @@ jobs: bin/magento frontend:build --help bin/magento frontend:watch --help bin/magento frontend:clean --help + bin/magento template:override --help bin/magento hyva:check --help bin/magento hyva:tokens --help diff --git a/docs/commands_reference.md b/docs/commands_reference.md index 118a1f5a..69b1856c 100644 --- a/docs/commands_reference.md +++ b/docs/commands_reference.md @@ -11,6 +11,7 @@ Complete reference of all CLI commands provided by the MageForge module. | **Theme** | `mageforge:theme:watch` | Watch theme files and auto-rebuild | `frontend:watch` | | **Theme** | `mageforge:theme:clean` | Clean static files and cache directories | `frontend:clean` | | **Theme** | `mageforge:theme:inspector` | Manage Frontend Inspector (enable/disable/status) | — | +| **Template** | `mageforge:template:override` | Copy a module template into a theme (override) | `template:override` | | **Hyvä** | `mageforge:hyva:tokens` | Generate Hyvä design tokens | `hyva:tokens` | | **Hyvä** | `mageforge:hyva:compatibility:check` | Check modules for Hyvä compatibility issues | `hyva:check` | | **System** | `mageforge:system:version` | Show current and latest module version | `system:version` | @@ -124,6 +125,49 @@ bin/magento mageforge:theme:inspector status --- +## Template Commands + +### `mageforge:template:override` + +Copies a module template into a theme as an override, following Magento's view file fallback +logic. The command resolves both the correct source file and the correct target directory for +you — including the tricky cases where Hyvä compatibility modules ship the template that is +actually rendered. + +```bash +bin/magento mageforge:template:override