DEV Community

loading...

n98 tools for Magento 2

pabodah profile image Paboda Hettiarachchi ・1 min read

Install / set permission
From project root:

wget https://files.magerun.net/n98-magerun2.phar
chmod +x ./n98-magerun2.phar
Enter fullscreen mode Exit fullscreen mode

List of commands can be found via the following command.

php n98-magerun2.phar
Enter fullscreen mode Exit fullscreen mode

Change password of admin

php n98-magerun2.phar admin:user:change-password
Enter fullscreen mode Exit fullscreen mode

DB dump

php n98-magerun2.phar db:dump
Enter fullscreen mode Exit fullscreen mode

Debug command line functions

export XDEBUG_CONFIG="idekey=PHPSTORM"
php n98-magerun2.phar setup:upgrade
Enter fullscreen mode Exit fullscreen mode

Discussion

pic
Editor guide