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/
List of commands can be found via the following command.
php n98-magerun2.phar
Change password of admin
php n98-magerun2.phar admin:user:change-password
DB dump
php n98-magerun2.phar db:dump
Debug command line functions
export XDEBUG_CONFIG="idekey=PHPSTORM"
php n98-magerun2.phar setup:upgrade
php n98-magerun2.phar sys:cron:list
Top comments (0)