Skip to content
cmuench edited this page Jan 5, 2013 · 7 revisions

Config

n98-magerun can be extended and changed by configurations.

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

User Config

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

Project Config

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

Clone this wiki locally