Skip to content

Installation and Update

Scott Buchanan edited this page May 18, 2016 · 8 revisions


There are two ways to install the tools:

Download phar file


You can make the .phar file executable.

chmod +x ./n98-magerun.phar

If you want to use command system wide you can copy it to /usr/local/bin.

sudo cp ./n98-magerun.phar /usr/local/bin/n98-magerun

From source with composer

  1. Clone git repository:

    git clone
  2. Download composer:

    curl -s | php
  3. Let composer do all the work for you:

    php ./composer.phar install
  4. Run cli.php:

    php bin/n98-magerun

It's recommended to install the .phar file system wide.


Since version 1.1.0 we deliver a self-update command:

n98-magerun.phar self-update

If file was installed system wide do not forget "sudo".

You can’t perform that action at this time.