---
name: mage2gen
description: Generate Magento 2.4 module scaffolding with vendored Mage2Gen.
---

# Mage2Gen

Python 3 is required. Use the `mage2gen_generate_module` tool for new module scaffolding; it calls MerchantDuo's vendored Mage2Gen library at the package-absolute path and writes only beneath the selected project's `app/code`. It can also generate a frontend controller/layout/template starter. Inspect the generated files, then adapt and validate them. Its Magento 2.4 setup declares no runtime dependencies beyond Python/setuptools.
