PHPackages                             n98/magerun2 - 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. n98/magerun2

ActiveLibrary[CLI &amp; Console](/categories/cli)

n98/magerun2
============

Tools for managing Magento projects and installations

9.3.0(3mo ago)928244.3k↓41.9%226[20 PRs](https://github.com/netz98/n98-magerun2/pulls)6MITPHPPHP ^8.0CI passing

Since Nov 18Pushed 1mo ago39 watchersCompare

[ Source](https://github.com/netz98/n98-magerun2)[ Packagist](https://packagist.org/packages/n98/magerun2)[ Docs](http://netz98.github.com/n98-magerun2/)[ RSS](/packages/n98-magerun2/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (10)Dependencies (24)Versions (159)Used By (6)

n98-magerun2: The Swiss Army Knife for Magento 2
================================================

[](#n98-magerun2-the-swiss-army-knife-for-magento-2)

[![n98-magerun Logo](.github/doc/magerun-logo.png)](.github/doc/magerun-logo.png)

n98-magerun2 provides powerful CLI tools for Magento 2, Mage-OS, and Adobe Commerce.

- **Official Documentation:**
- **Development Branch:** `develop`
- **Supported Magento:** Magento 2 only ([Magento 1/OpenMage tool here](https://github.com/netz98/n98-magerun))

Quick Start
-----------

[](#quick-start)

### Download the PHAR file

[](#download-the-phar-file)

```
curl -sS -O https://files.magerun.net/n98-magerun2.phar
curl -sS -o n98-magerun2.phar.sha256 https://files.magerun.net/sha256.php?file=n98-magerun2.phar
shasum -a 256 -c n98-magerun2.phar.sha256

```

### Install dist package

[](#install-dist-package)

The dist package installs the n98-magerun2 PHAR file directly in your project.

```
composer require netz98/magerun2-dist
```

Run the PHAR file
-----------------

[](#run-the-phar-file)

You can run the PHAR file directly from the command line:

```
./n98-magerun2.phar
```

Build from source
-----------------

[](#build-from-source)

1. **Clone the repository:**```
    git clone https://github.com/netz98/n98-magerun2.git
    cd n98-magerun2
    ```
2. **Install dependencies:**```
    composer install
    ```
3. **Build the PHAR:**```
    ./build.sh
    ```

Full Documentation
------------------

[](#full-documentation)

For full installation, usage, development, and contribution guidelines, please visit the [official documentation](https://netz98.github.io/n98-magerun2/).

Category/NamespaceDescriptionExample Commands[admin](https://netz98.github.io/n98-magerun2/command-docs/admin/)Commands for managing Magento admin user accounts and related settings.`admin:user:list`, `admin:user:create`, `admin:user:change-password`, `admin:notifications`[cache](https://netz98.github.io/n98-magerun2/command-docs/cache/)Commands for interacting with and managing Magento's various cache systems.`cache:clean`, `cache:disable`, `cache:enable`, `cache:flush`, `cache:list`[config](https://netz98.github.io/n98-magerun2/command-docs/config/)Commands for managing Magento store configurations and environment settings.`config:store:get`, `config:store:set`, `config:env:set`, `config:search`[composer](https://netz98.github.io/n98-magerun2/command-docs/composer/)Commands for managing Composer-related tasks and package deployment.`composer:redeploy-base-packages`[customer](https://netz98.github.io/n98-magerun2/command-docs/customer/)Commands for managing Magento customer accounts.`customer:create`, `customer:list`, `customer:info`, `customer:change-password`[db](https://netz98.github.io/n98-magerun2/command-docs/db/)Commands for database operations such as dumps, imports, and queries.`db:dump`, `db:import`, `db:query`, `db:create`, `db:info`[dev](https://netz98.github.io/n98-magerun2/command-docs/development/)Commands tailored for Magento developers, including code generation and debugging tools.`dev:module:create`, `dev:console`, `dev:translate:admin`, `dev:theme:list`[eav](https://netz98.github.io/n98-magerun2/command-docs/eav/)Commands for managing EAV (Entity-Attribute-Value) attributes.`eav:attribute:list`, `eav:attribute:view`, `eav:attribute:remove`[giftcard](https://netz98.github.io/n98-magerun2/command-docs/giftcard/)Commands for managing Magento gift cards.`giftcard:pool:generate`, `giftcard:create`, `giftcard:info`, `giftcard:remove`[generation](https://netz98.github.io/n98-magerun2/command-docs/generation/)Commands related to Magento's code generation processes.`generation:flush`[index](https://netz98.github.io/n98-magerun2/command-docs/index/)Commands for managing Magento's indexers.`index:list`, `index:trigger:recreate`[install](https://netz98.github.io/n98-magerun2/command-docs/installer/)Command for installing Magento.`installer`[integration](https://netz98.github.io/n98-magerun2/command-docs/integration/)Command for integrations to Magento.`integration:list`, `integration:show`, `integration:delete`[magerun](https://netz98.github.io/n98-magerun2/command-docs/magerun/)Commands for working with n98-magerun2 config and internal tools.`magerun:config:info`, `magerun:config:dump`[routes](https://netz98.github.io/n98-magerun2/command-docs/routes/)Commands for managing and viewing Magento routes.`routes:list`[script](https://netz98.github.io/n98-magerun2/command-docs/scripting/)Command for running sequences of n98-magerun2 commands from a file.`script`[sys](https://netz98.github.io/n98-magerun2/command-docs/system/)Commands for system-level information, checks, and maintenance tasks.`sys:info`, `sys:check`, `sys:maintenance`, `sys:cron:list`, `sys:store:list`License
-------

[](#license)

MIT License. See [MIT-LICENSE.txt](./MIT-LICENSE.txt).

###  Health Score

71

—

ExcellentBetter than 100% of packages

Maintenance85

Actively maintained with recent releases

Popularity57

Moderate usage in the ecosystem

Community42

Growing community involvement

Maturity87

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 54.3% 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 ~37 days

Total

100

Last Release

105d ago

Major Versions

4.9.1 → 5.0.02022-04-12

5.2.0 → 6.0.02022-09-23

6.1.1 → 7.0.02023-03-13

7.5.0 → 8.0.02025-02-24

8.1.1 → 9.0.0-alpha12025-06-13

PHP version history (7 changes)1.0.0PHP &gt;=5.3.3

1.3.1PHP &gt;=5.6.0

3.0.0PHP ^7.0.0

4.2.0PHP ^7.1

4.8.0PHP ^7.3||^8.0

7.0.0PHP ^7.4||^8.0

8.0.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![cmuench](https://avatars.githubusercontent.com/u/211294?v=4)](https://github.com/cmuench "cmuench (1684 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (776 commits)")[![ktomk](https://avatars.githubusercontent.com/u/352517?v=4)](https://github.com/ktomk "ktomk (350 commits)")[![google-labs-jules[bot]](https://avatars.githubusercontent.com/in/842251?v=4)](https://github.com/google-labs-jules[bot] "google-labs-jules[bot] (67 commits)")[![tkn98](https://avatars.githubusercontent.com/u/10513307?v=4)](https://github.com/tkn98 "tkn98 (55 commits)")[![amenk](https://avatars.githubusercontent.com/u/1087128?v=4)](https://github.com/amenk "amenk (18 commits)")[![hostep](https://avatars.githubusercontent.com/u/85479?v=4)](https://github.com/hostep "hostep (14 commits)")[![EliasZ](https://avatars.githubusercontent.com/u/530685?v=4)](https://github.com/EliasZ "EliasZ (14 commits)")[![jthelen-n98](https://avatars.githubusercontent.com/u/61879242?v=4)](https://github.com/jthelen-n98 "jthelen-n98 (10 commits)")[![peterjaap](https://avatars.githubusercontent.com/u/431360?v=4)](https://github.com/peterjaap "peterjaap (10 commits)")[![c-walter](https://avatars.githubusercontent.com/u/9032927?v=4)](https://github.com/c-walter "c-walter (9 commits)")[![fredden](https://avatars.githubusercontent.com/u/334786?v=4)](https://github.com/fredden "fredden (8 commits)")[![diazwatson](https://avatars.githubusercontent.com/u/1080386?v=4)](https://github.com/diazwatson "diazwatson (6 commits)")[![scottsb](https://avatars.githubusercontent.com/u/6756989?v=4)](https://github.com/scottsb "scottsb (6 commits)")[![torhoehn](https://avatars.githubusercontent.com/u/1945725?v=4)](https://github.com/torhoehn "torhoehn (6 commits)")[![driskell](https://avatars.githubusercontent.com/u/939815?v=4)](https://github.com/driskell "driskell (5 commits)")[![gowrizrh](https://avatars.githubusercontent.com/u/40108018?v=4)](https://github.com/gowrizrh "gowrizrh (5 commits)")[![indykoning](https://avatars.githubusercontent.com/u/15870933?v=4)](https://github.com/indykoning "indykoning (5 commits)")[![sprankhub](https://avatars.githubusercontent.com/u/930199?v=4)](https://github.com/sprankhub "sprankhub (5 commits)")[![lemhannes](https://avatars.githubusercontent.com/u/7870878?v=4)](https://github.com/lemhannes "lemhannes (4 commits)")

---

Tags

cli-appmagento2phpcliinstallermagentomagerun2

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/n98-magerun2/health.svg)

```
[![Health](https://phpackages.com/badges/n98-magerun2/health.svg)](https://phpackages.com/packages/n98-magerun2)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[n98/magerun

Tools for managing Magento projects and installations

1.4k264.7k7](/packages/n98-magerun)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19562.3M1.3k](/packages/drupal-core)

PHPackages © 2026

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