PHPackages                             masterzydra/magento2-gen-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. masterzydra/magento2-gen-cli

ActiveMagento2-module[CLI &amp; Console](/categories/cli)

masterzydra/magento2-gen-cli
============================

Module that adds CLI commands to create modules, controllers, etc.

1.5.0(9mo ago)59[2 issues](https://github.com/MasterZydra/Magento2-Gen-CLI/issues)MITPHPPHP ^8.1

Since Nov 1Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/MasterZydra/Magento2-Gen-CLI)[ Packagist](https://packagist.org/packages/masterzydra/magento2-gen-cli)[ RSS](/packages/masterzydra-magento2-gen-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

Magento2 Generator CLI
======================

[](#magento2-generator-cli)

**Content**

- [Commands](#commands)
- [Usage](#usage)
- [Custom templates](#custom-templates)
- [Installation](#installation)
- [Updating to latest version](#updating-to-latest-version)

Creating a new module for Magento2, adding a controller, etc. is not intuitive.
You have to look into the official documentation of Magento2 or use a third party tool like [Mage2Gen.com](Mage2Gen.com).
This extension adds Laravel-like CLI commands to simplify these steps.

Commands
--------

[](#commands)

CommandDescription`make:block`Create a new block`make:command`Create a new command`make:controller`Create a new controller`make:helper`Create a new helper`make:module`Create a new moduleUsage
-----

[](#usage)

```
> php bin/magento make:module

> php bin/magento make:module
Vendor name (e.g. 'Magento'): Magento
Module name (e.g. 'Sales'): Sales
Generating files...
Module 'Magento/Sales' was created.

```

Custom templates
----------------

[](#custom-templates)

Don't like the files the commands create?
With custom templates you can create a folder structure like the `Template` directory of this module.
You can just place the custom templates for the files you want to change.
Otherwise the default templates from this module will be used.

The module will take the path from the environment variable `GEN_CLI_TEMPLATE`.

```
$ export GEN_CLI_TEMPLATE="/var/www/html/app/code/My/Templates"
```

Installation
------------

[](#installation)

This Magento2 module can be installed using composer:
`> composer require masterzydra/magento2-gen-cli`

To remove it from the list of required packages use the following command:
`> composer remove masterzydra/magento2-gen-cli`

Updating to latest version
--------------------------

[](#updating-to-latest-version)

With the following command composer checks all packages in the composer.json for the latest version:
`> composer update`

If you only want to check this package for newer versions, you can use
`> composer update masterzydra/magento2-gen-cli`

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance49

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~38 days

Recently: every ~66 days

Total

8

Last Release

287d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb8b8450a7a9abe3de10bc9420023bc1b7deac8c3487821b01ba54be07de85c9?d=identicon)[MasterZydra](/maintainers/MasterZydra)

---

Top Contributors

[![MasterZydra](https://avatars.githubusercontent.com/u/44842054?v=4)](https://github.com/MasterZydra "MasterZydra (19 commits)")

---

Tags

generatormagentomagento2magento2-modulemagentomagento2Mage2Gen

### Embed Badge

![Health badge](/badges/masterzydra-magento2-gen-cli/health.svg)

```
[![Health](https://phpackages.com/badges/masterzydra-magento2-gen-cli/health.svg)](https://phpackages.com/packages/masterzydra-magento2-gen-cli)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[olegkoval/magento2-regenerate-url-rewrites

Add into Magento 2 a CLI feature which allow to regenerate a Url Rewrites of products and categories

4423.7M2](/packages/olegkoval-magento2-regenerate-url-rewrites)[markshust/magento2-module-disabletwofactorauth

The DisableTwoFactorAuth module provides the ability to disable two-factor authentication.

2282.7M6](/packages/markshust-magento2-module-disabletwofactorauth)[tnegeli/m2clitools

Some nice commands to cleanup media files and tables on production systems

4068.2k](/packages/tnegeli-m2clitools)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

119.1k](/packages/opengento-module-category-import-export)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
