Discontinued - development continues at https://github.com/Savvii/magerun2-addons
Some additional commands for the excellent m98-magerun2 Magento 2 command-line tool.
There are a few options. You can check out the different options in the magerun2 Github wiki.
Here's the easiest:
-
Create ~/.n98-magerun2/modules/ if it doesn't already exist.
mkdir -p ~/.n98-magerun2/modules/
-
Clone the magerun2-addons repository in there
cd ~/.n98-magerun2/modules/ && git clone https://github.com/magehost/magerun2-addons.git magehost-addons
-
It should be installed. To see that it was installed, check to see if one of the new commands is in there;
n98-magerun2.phar magehost:helloworld
Using this command, you can see our fancy hello world, this is used as a template for new commands
magerun2 magehost:helloworld
Using this command, you lock all active admin users, this will also write the locked user_ids in ~/.locked_admin_users
magerun2 magehost:admin:lock
Using this command, you unlock admin users locked by us, this will read the ids from ~/.locked_admin_users
magerun2 magehost:admin:unlock
Using this command, you can check for the most common performance failures in your environment
magerun2 magehost:performance:check