Here the following steps show you how to exploit magento 2 command line interface
Everyone knows Magento 2 has powerful command line and it is very useful. You can rapidly re guide or flush the cache at fast speed. In this article we discuss about how to exploit Magento 2 command line interface accurately.
Step 1: install php_cli
Step 2: Some common command line in Magento 2
Step 3: exploit command line that you want
Install php_cli
To use Magento console you should install php_cli. Please go to Magento 2 root folder and type .
Php bin/Magento
If the command is show, the php_cli is installed so you can use the Magento 2 console normally. If it is not show, you must install php_cli
If your server is ubuntu, you can install the command:
Sudo apt-get installs php-cli
Some common command line in Magento 2
- Install a module and upgrade the module: php bin/magento setup:upgrade
- key to developer or production mode: php bin/magento deploy:mode:set developer
- illustrate present mode: : php bin/magento deploy:mode:show
- Locate static content: php bin/magento setup:static-content:deploy
- Di compile: php bin/magento setup:di:compile
- Reguide: php bin/magento inguide:reguide
- Flush Magento cache: php bin/magento cache:flush
Exploit command line that you want
You can exploit php bin/Magento to display all command lines
The above mentioned steps show you how to exploit Magento 2 command line interface
Leave a Reply