n98-magerun

Install

curl -O https://files.magerun.net/n98-magerun.phar
chmod +x ./n98-magerun.phar
sudo mv ./n98-magerun.phar /usr/local/bin/

Add a custom alias to your shell profile:

alias magerun="n98-magerun.phar"

Usage

# Re-index everything
magerun index:reindex:all

# Clear all caches
magerun cache:flush

Resources