PHPackages                             magefan/module-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. magefan/module-cli

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

magefan/module-cli
==================

CLI in Magento 2 admin panel

2.1.4(1y ago)3736.2k↓28.6%61PHP

Since Oct 31Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/magefan/module-cli)[ Packagist](https://packagist.org/packages/magefan/module-cli)[ RSS](/packages/magefan-module-cli/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (12)Used By (1)

Magento 2 Command Line Extension by Magefan
===========================================

[](#magento-2-command-line-extension-by-magefan)

[![Total Downloads](https://camo.githubusercontent.com/77ff93ceec575d57359cbec2bf1422fec7d54d873267301d0f1c3f08ed488c30/68747470733a2f2f706f7365722e707567782e6f72672f6d61676566616e2f6d6f64756c652d636c692f646f776e6c6f616473)](https://packagist.org/packages/magefan/module-cli)[![Latest Stable Version](https://camo.githubusercontent.com/59128060a6330e315a8428f3e60e1d08d8d4fd79e360e8b22c02df59b67a9c49/68747470733a2f2f706f7365722e707567782e6f72672f6d61676566616e2f6d6f64756c652d636c692f762f737461626c65)](https://packagist.org/packages/magefan/module-cli)

[![](https://camo.githubusercontent.com/41edc821de6578e747891508d2e976402f3dc0d0d04fa1cd42d7f48b25ac2d66/68747470733a2f2f636d2e6d61676566616e2e636f6d2f636174616c6f672f70726f647563742f63616368652f32386234303763656631363638666430626464366633366462336538653266302f692f632f69636f6e2d636c692d657874656e73696f6e5f312e6a7067)](https://camo.githubusercontent.com/41edc821de6578e747891508d2e976402f3dc0d0d04fa1cd42d7f48b25ac2d66/68747470733a2f2f636d2e6d61676566616e2e636f6d2f636174616c6f672f70726f647563742f63616368652f32386234303763656631363638666430626464366633366462336538653266302f692f632f69636f6e2d636c692d657874656e73696f6e5f312e6a7067)

[Magento 2 CLI module](https://magefan.com/magento2-cli-extension) allows you to run CLI commands from the admin panel (System &gt; Tools &gt; Command Line) using the exec PHP function. You can restrict access to this interface or specific commands using Magento 2 Access Control List.

We recommend using it ONLY on dev environments, as it is not secure to run exec in production.

[![](https://camo.githubusercontent.com/db05aa38c774e1bb774896216b5616ff981666aa71c7959d703cdd113e890e54/68747470733a2f2f6d61676566616e2e636f6d2f6d656469612f777973697779672f6d6164655f696e5f756b7261696e652e6a7067)](https://camo.githubusercontent.com/db05aa38c774e1bb774896216b5616ff981666aa71c7959d703cdd113e890e54/68747470733a2f2f6d61676566616e2e636f6d2f6d656469612f777973697779672f6d6164655f696e5f756b7261696e652e6a7067)

[![](https://camo.githubusercontent.com/338f37e64d1b24aa57ebf083537ea08596b9f6c8223b210d7da4ea276d62d1d0/68747470733a2f2f636d2e6d61676566616e2e636f6d2f777973697779672f70726f64756374732f646f776e6c6f61642d6d61676566616e2d657874656e73696f6e732e706e67)](https://magefan.com/magento2-cli-extension)

[![alt text](https://camo.githubusercontent.com/a07b0956eb37a0ab921b7922c8d4a0c1fe30cd9e8a9c795b2abaf322553eaaa1/68747470733a2f2f6d61676566616e2e636f6d2f6d656469612f777973697779672f6d6167656e746f322d636c692e706e67)](https://camo.githubusercontent.com/a07b0956eb37a0ab921b7922c8d4a0c1fe30cd9e8a9c795b2abaf322553eaaa1/68747470733a2f2f6d61676566616e2e636f6d2f6d656469612f777973697779672f6d6167656e746f322d636c692e706e67)

Useful Links
------------

[](#useful-links)

- [User Guide](https://magefan.com/magento2-cli-extension/documentation)
- [Change Log](https://magefan.com/magento2-cli-extension/change-log)
- [FAQs](https://magefan.com/magento2-cli-extension#pattr-faq)

🇺🇦 Stand with Ukraine! [How can you help?](https://magefan.com/blog/join-our-donations)
---------------------------------------------------------------------------------------

[](#-stand-with-ukraine-how-can-you-help)

Requirements
------------

[](#requirements)

- Magento Community Edition 2.1.x-2.4.x or Magento Enterprise Edition 2.1.x-2.4.x
- Exec function needs to be enabled in PHP settings.

Installation Method 1 - Installing via composer
-----------------------------------------------

[](#installation-method-1---installing-via-composer)

- Open command line
- Using command "cd" navigate to your magento2 root directory
- Run command: composer require magefan/module-cli

Installation Method 2 - Installing using archive
------------------------------------------------

[](#installation-method-2---installing-using-archive)

- Download [ZIP Archive](https://magefan.com/magento2-cli-extension)
- Extract files
- In your Magento 2 root directory create folder app/code/Magefan/Cli
- Copy files and folders from archive to that folder
- In command line, using "cd", navigate to your Magento 2 root directory
- Run commands:

```
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

```

Support
-------

[](#support)

If you have any issues, please [contact us](mailto:support@magefan.com)then if you still need help, open a bug report in GitHub's [issue tracker](https://github.com/magefan/module-cli/issues).

Please do not use Magento Marketplace Reviews or (especially) the Q&amp;A for support. There isn't a way for us to reply to reviews and the Q&amp;A moderation is very slow.

Need More Features?
-------------------

[](#need-more-features)

Please contact us to get a quote

License
-------

[](#license)

The code is licensed under [EULA](https://magefan.com/end-user-license-agreement).

[Magento Extensions](https://magefan.com/magento-2-extensions) by Magefan
-------------------------------------------------------------------------

[](#magento-extensions-by-magefan)

### Magento 2 SEO Extensions

[](#magento-2-seo-extensions)

- [Magento SEO](https://magefan.com/magento-2-seo-extension)
- [Magento 2 Rich Snippets](https://magefan.com/magento-2-rich-snippets)
- [Magento 2 HTML Sitemap](https://magefan.com/magento-2-html-sitemap-extension)
- [Magento 2 XML Sitemap](https://magefan.com/magento-2-xml-sitemap-extension)
- [Magento 2 Twitter Cards](https://magefan.com/magento-2-twitter-cards-extension)
- [Magento Open Graph Tags](https://magefan.com/magento-2-open-graph-extension-og-tags)

### [Magento 2 Google Extensions](https://magefan.com/magento-2-extensions/google-extensions)

[](#magento-2-google-extensions)

- [Magento Google Tag Manager](https://magefan.com/magento-2-google-tag-manager)
- [Magento 2 Google Analytics 4](https://magefan.com/magento-2-google-analytics-4)
- [Magento Google Shopping Feed](https://magefan.com/magento-2-google-shopping-feed-extension)
- [Magento Google Customer Reviews](https://magefan.com/magento-2-google-customer-reviews)
- [Magento 2 Google Indexing](https://magefan.com/magento-2-google-indexing-api)

### [Magento Speed Optimisation Extensions](https://magefan.com/magento-2-extensions/speed-optimization)

[](#magento-speed-optimisation-extensions)

- [Magento 2 Google Page Speed Optimizer](https://magefan.com/magento-2-google-page-speed-optimizer)
- [Magento 2 WebP Images](https://magefan.com/magento-2-webp-optimized-images)
- [Magento Full Page Cache Extension](https://magefan.com/magento-2-full-page-cache-warmer)
- [Magento 2 Lazy Load Images](https://magefan.com/magento-2-image-lazy-load-extension)
- [Magento 2 Defer JavaScript](https://magefan.com/rocket-javascript-deferred-javascript)

### [Magento Admin Extensions](https://magefan.com/magento-2-extensions/admin-extensions)

[](#magento-admin-extensions)

- [Magento 2 Dynamic Category](https://magefan.com/magento-2-dynamic-categories)
- [Magento 2 Size Chart](https://magefan.com/magento-2-size-chart)
- [Magento 2 Security Extension](https://magefan.com/magento-2-security-extension)
- [Magento 2 Admin Action Log](https://magefan.com/magento-2-admin-action-log)
- [Magento Extended Product Grid](https://magefan.com/magento-2-product-grid-inline-editor)
- [Magento 2 Product Tabs](https://magefan.com/magento-2/extensions/product-tabs)
- [Magento 2 Product Widget](https://magefan.com/magento-2-product-widget)
- [Magento 2 Email Attachments](https://magefan.com/magento-2-email-attachments)
- [Magento 2 Admin View](https://magefan.com/magento-2-admin-view-extension)
- [Magento 2 Email Notifications](https://magefan.com/magento-2-admin-email-notifications)
- [Magento 2 Login As Customer](https://magefan.com/login-as-customer-magento-2-extension)

### [Magento Order Management Extensions](https://magefan.com/magento-2-extensions/order-management)

[](#magento-order-management-extensions)

- [Magento Order Editor](https://magefan.com/magento-2-edit-order-extension)
- Better [Magento 2 Order Grid](https://magefan.com/magento-2-better-order-grid-extension)
- [Magento 2 Guest to Customer](https://magefan.com/magento2-convert-guest-to-customer)
- [Magento POS System](https://magefan.com/magento-pos-system)

### Magento 2 Blog Extensions

[](#magento-2-blog-extensions)

- [Magento 2 Blog Extension](https://magefan.com/magento2-blog-extension)
- [Magento 2 Multi Blog](https://magefan.com/magento-2-multi-blog-extension)

### [Magento Marketing Extensions](https://magefan.com/magento-2-extensions/marketing-automation)

[](#magento-marketing-extensions)

- [Magento 2 Facebook Pixel](https://magefan.com/magento-2-facebook-pixel-extension)
- [Magento TikTok Pixel](https://magefan.com/magento-2-tiktok-pixel)
- [Magento 2 Dynamic Blocks](https://magefan.com/magento-2-cms-display-rules-extension) and Pages
- [Magento 2 Cookie Consent](https://magefan.com/magento-2-cookie-consent)
- [Magento 2 Base Price](https://magefan.com/magento-2-base-price)
- [Magento 2 Price History](https://magefan.com/magento-2-price-history)
- [Magento 2 Mautic Extension](https://magefan.com/magento-2-mautic-extension)
- [Magento 2 YouTube Video](https://magefan.com/magento2-youtube-extension)

### [Magento Promotions Extensions](https://magefan.com/magento-2-extensions/promotions-extensions)

[](#magento-promotions-extensions)

- [Magento 2 Automatic Related Products](https://magefan.com/magento-2-automatic-related-products)
- [Magento 2 Product Labels](https://magefan.com/magento-2-product-labels)
- [Magento 2 Coupon Code Extension](https://magefan.com/magento-2-coupon-code-link)

### [Magento 2 Multi-Language Extensions](https://magefan.com/magento-2-extensions/multi-language-extensions)

[](#magento-2-multi-language-extensions)

- [Magento 2 Hreflang Tags](https://magefan.com/magento2-alternate-hreflang-extension)
- [Magento 2 Currency Switcher](https://magefan.com/magento-2-currency-switcher-auto-currency-by-country)
- [Magento 2 Language Switcher](https://magefan.com/magento-2-auto-language-switcher)
- [Magento 2 Store Switcher](https://magefan.com/magento-2-geoip-switcher-extension)
- [Magento 2 Translation Extension](https://magefan.com/magento-2-translation-extension)

### [Developers Tools](https://magefan.com/magento-2-extensions/developer-tools)

[](#developers-tools)

- [Magento Zero Downtime Deployment](https://magefan.com/blog/magento-2-zero-downtime-deployment)
- [Magento 2 Cron Schedule](https://magefan.com/magento-2-cron-schedule)
- [Magento 2 Conflict Detector](https://magefan.com/magento2-conflict-detector)

### [Shopify Apps](https://magefan.com/shopify/apps) by Magefan

[](#shopify-apps-by-magefan)

- [Shopify Login As Customer](https://apps.shopify.com/login-as-customer)
- [Shopify Blog](https://apps.shopify.com/magefan-blog)
- [Shopify Size Chart](https://magefan.com/shopify/apps/size-chart)
- [Shopify Google Indexer](https://magefan.com/shopify/apps/google-indexing)
- [Shopify Product Feeds](https://magefan.com/shopify/apps/product-feed)
- [Shopify Server GTM &amp; GA4](https://magefan.com/shopify/apps/gtm-and-ga4)

### [Magento 2 Services](https://magefan.com/services) by Magefan

[](#magento-2-services-by-magefan)

- [Magento Speed Optimization Service](https://magefan.com/magento-speed-optimization-service)
- [Magent SEO Service](https://magefan.com/magento-2-seo-service)
- [Custom Magento Development](https://magefan.com/custom-development)
- [Magento Installation Service](https://magefan.com/installation-service)

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance60

Regular maintenance activity

Popularity39

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 88% 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 ~423 days

Recently: every ~321 days

Total

7

Last Release

579d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/48525307?v=4)[Ihor Vansach](/maintainers/IhorVansach)[@ihorvansach](https://github.com/ihorvansach)

---

Top Contributors

[![magefan](https://avatars.githubusercontent.com/u/9151916?v=4)](https://github.com/magefan "magefan (73 commits)")[![andriysvyryda](https://avatars.githubusercontent.com/u/53607630?v=4)](https://github.com/andriysvyryda "andriysvyryda (5 commits)")[![ihorvansach](https://avatars.githubusercontent.com/u/48525307?v=4)](https://github.com/ihorvansach "ihorvansach (5 commits)")

---

Tags

magefanmagefan-extensionmagentomagento-2magento-2-extensionmagento-2-extension-freemagento-2-modulemagento-extensionmagento-extension-freemagento-modulemagento-module-freemagento2magento2-extensionmagento2-extension-freemagento2-free-extensionmagento2-modulemagento2-module-freemagento2-plugin

### Embed Badge

![Health badge](/badges/magefan-module-cli/health.svg)

```
[![Health](https://phpackages.com/badges/magefan-module-cli/health.svg)](https://phpackages.com/packages/magefan-module-cli)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

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