Skip to content
Christian Münch edited this page Aug 26, 2014 · 7 revisions

Config

n98-magerun can be extended and changed by configurations. You can add your own commands (see Add-custom-commands). It's possible to overwrite the build-in config delived by magerun. See config.yml file https://github.com/netz98/n98-magerun/blob/master/config.yaml

Configs can be loaded on different levels:

  • build-in config by magerun
  • on system level
  • on user level
  • on project level

All configs will be merged in the following order: buildin -> system -> user -> project

Config Example

autoloaders:
  # Namespace => path to your libs
  VendorPrefix: /path/to/VendorPrefix/src
  AnotherPrefix: /path/to/another-prefix

commands:
   customCommands:
     - VendorPrefix\Magento\Command\MyCommand
     - AnotherPrefix\FooCommand
     - AnotherPrefix\BarCommand
   aliases:
     - "ccc": "cache:clean config"
     - "customer:create:cmuench": "customer:create [email protected] test123456 Christian Münch"

System Wide Config

A system wide configuration can be placed in /etc/n98-magerun.yaml

%windir%\n98-magerun.yaml (only Microsoft Windows)

User Config

Place your config in your home directory ~/.n98-magerun.yaml

%userprofile%\n98-magerun.yaml (only Microsoft Windows)

Project Config

You can load a config in your Magento project. Create your config here: app/etc/n98-magerun.yaml