Skip to content

Magento 2 Extension to allow admin user to run CLI commands from Admin Panel | Manish Joy

License

Notifications You must be signed in to change notification settings

manishjoy/module-admincli-m2

Repository files navigation

Magento 2.x Extension | ManishJoy_AdminCli

``manishjoy/module-admincli-m2``

Main Functionalities

This Extension allows admin user to run CLI commands from Admin Panel

  • Now, no need to go through the complexities of connecting SSH/Terminal
  • Uses exec php function
  • Very easy installation and usage
  • I recommend to use it ONLY on dev environments as it is not securely to run exec.

Screenshots

Admin Command Line

Installation

in production please use the --keep-generated option

  • Unzip the zip file in app/code/ManishJoy/AdminCli
  • Enable the module by running php bin/magento module:enable ManishJoy_AdminCli
  • Apply database updates by running php bin/magento setup:upgrade
  • Flush the cache by running php bin/magento cache:flush

Usage

  • Navigate to System ➡️ Tools ➡️ Admin Command Line
  • Enter your password and the Magento command and then click Enter
  • To know more about Magento 2.x commands, visit

Prerequisites

Use the following table to verify you have the correct prerequisites to install this Extension.

Prerequisite How to check For more information
Apache 2.2 or 2.4 Ubuntu: apache2 -v
CentOS: httpd -v
Apache
PHP 7.1.x or higher php -v PHP Ubuntu
PHP CentOS
MySQL 5.6.x mysql -u [root user name] -p MySQL
Magento 2.x bin/magento --version Magento

Liked My Work?

Buy Me a Coffee

--- OR ---

SUPPORT ME ON PATREON

Feedback and Support

Tutorials and Blogs