DEV Community

Paboda Hettiarachchi
Paboda Hettiarachchi

Posted on • Edited on

1 2

n98 tools for Magento 2

Install / set permission
From project root:

wget https://files.magerun.net/n98-magerun2.phar
chmod +x ./n98-magerun2.phar
sudo cp ./n98-magerun2.phar /usr/local/bin/
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
php n98-magerun2.phar sys:cron:list
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay