openforgeproject / mageforge
Magento 2 module for frontend workflow automation
Package info
github.com/OpenForgeProject/mageforge
Type:magento2-module
pkg:composer/openforgeproject/mageforge
Fund package maintenance!
Requires
- php: ~8.3.0||~8.4.0||~8.5.0
- laravel/prompts: ^0.3.5
- magento/framework: 103.0.*
- dev-main
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.1
- 0.15.0
- 0.14.1
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.0
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.0
- 0.0.3
- 0.0.2
- 0.0.1
- dev-copilot/analyze-test-coverage-again
- dev-copilot/analyze-test-coverage
- dev-copilot/analyze-test-coverage-improve-tests
- dev-release-please--branches--main--components--openforgeproject/mageforge
- dev-copilot/fix-duplicate-numbering-and-add-sections
- dev-fix/toolbar-audit-highlighting
- dev-feat/buildVendorsAtOnce
- dev-110-feature-request-copy-vendor-files-to-theme
- dev-copilot/update-license-to-gpl-30
- dev-copilot/sub-pr-59-again
- dev-copilot/sub-pr-59
This package is auto-updated.
Last update: 2026-04-17 21:34:27 UTC
README
MageForge is a powerful CLI front-end development toolkit for Magento 2 that simplifies theme development workflows. It provides tools for many types of Magento themes and can be easily extended for custom themes.
Table of Contents
- Supported Magento Versions
- Features
- Getting Started
- Additional Documentation
- Support
- Project Information
- Credits
Supported Magento Versions
MageForge requires Magento 2.4.7 or higher with PHP 8.3 or higher. Please ensure that your Magento installation meets this requirement before installation.
Features
Supported Theme-Types 🎨
| Theme Type | Support Status |
|---|---|
| 🎯 Magento Standard | ✅ Fully Supported |
| 🚀 Hyvä (TailwindCSS 3.x / 4.x) | ✅ Fully Supported |
| 🔄 Hyvä Fallback | ✅ Fully Supported |
| 🎨 Custom TailwindCSS (no Hyvä) | ✅ Fully Supported |
| 💼 Avanta B2B | ✅ Fully Supported |
🥰 Your Custom Theme (css, sass, less, ... ) |
Create your own Builder |
Available Commands
| Command | Description | Aliases |
|---|---|---|
mageforge:theme:list |
Lists all available themes | frontend:list |
mageforge:theme:build |
Builds selected themes (CSS/TailwindCSS) | frontend:build |
mageforge:theme:watch |
Starts watch mode for theme development | frontend:watch |
mageforge:theme:clean |
Clean theme static files and cache directories | frontend:clean |
mageforge:theme:inspector |
Enable, disable or check status of Frontend Inspector | - |
mageforge:hyva:compatibility:check |
Check modules for Hyvä theme compatibility issues | hyva:check |
mageforge:hyva:tokens |
Generate Hyvä design tokens (Hyvä themes only) | hyva:tokens |
mageforge:system:version |
Shows current and latest version of the module | system:version |
mageforge:system:check |
Get system information (OS, PHP, Database, Node.js, etc.) | system:check |
Getting Started
Installation
-
Install the module via Composer:
composer require openforgeproject/mageforge
-
Enable the module:
bin/magento module:enable OpenForgeProject_MageForge bin/magento setup:upgrade
Quick Start Guide
-
List available themes:
bin/magento mageforge:theme:list
-
Build a theme:
bin/magento mageforge:theme:build <theme-code>
Example:
bin/magento mageforge:theme:build Magento/luma -
Start development watch mode:
bin/magento mageforge:theme:watch <theme-code>
-
Generate Hyvä design tokens (for Hyvä themes):
bin/magento mageforge:hyva:tokens <theme-code>
This creates a
generated/hyva-tokens.cssfile from your design tokens configuration. -
Enjoy automatic CSS rebuilding as you work on your theme files!
Frontend Inspector 🕵️
The MageForge Inspector is a powerful developer tool that allows you to inspect Magento blocks, templates, and performance metrics directly in your browser.
Key Features:
- Structure Analysis: View template paths, block classes, and module names for any element.
- Performance Metrics: See PHP render times and cache status (lifetime, tags).
- Web Vitals: Monitor LCP, CLS, and INP metrics per element.
- Accessibility Checks: Inspect ARIA roles, contrast ratios, and alt text.
How to use:
-
Enable the Inspector in the CLI:
bin/magento mageforge:theme:inspector enable(Note: Requires Magento Developer Mode)
-
Enable the Inspector in Magento Admin Settings You can activate the Inspector in Magento Admin under
Stores > Configuration > MageForge > Frontend Inspector. -
Usage in Browser:
- Toggle: Press
Ctrl+Shift+I(Windows/Linux) orCmd+Option+I(macOS). - Inspect: Hover over elements to see details. Click to lock the inspector on a specific block.
- Toggle: Press
To disable the inspector:
bin/magento mageforge:theme:inspector disable
Note: The Inspector is currently not compatible with Magewire components. Magewire blocks are automatically excluded from inspection to prevent rendering errors.
Additional Documentation
- Advanced Usage Guide - Tips, tricks and troubleshooting
- Custom Theme Builders Documentation - Extend MageForge for your custom themes
- Commands Documentation - Detailed command reference
Support
- Report Bugs/Features: GitHub Issues
- Discussions: GitHub Discussions
- Contributing: See Contributing Guidelines
Project Information
Credits
MageForge uses the following third-party libraries:
| Library | Author | License |
|---|---|---|
| Tabler Icons | codecalm | MIT |
Thank you for using MageForge!

