DEV Community

Paboda Hettiarachchi
Paboda Hettiarachchi

Posted on

n98 tools for Magento 2

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 (0)