Every developer is using n98-magerun in a different way. Some uses the cache:clear command multiple times a day.
For this we have support for command aliases to simplify the usage.
Making aliases is nearly the same as unix bash aliases. You define an alias and n98-magerun will run the alias instead.
Aliases can be defined in any config. For personal use you can add the config in your home folder in file ~/.n98-magerun.yaml
commands: aliases: - "db:dump:time": "db:dump --add-time" - "ccc": "cache:clean config" - "cf": "cache:flush" - "test-customer": "customer:create firstname.lastname@example.org password123 John Doe"
If you run i.e. “n98-magerun.phar test-customer” a new customer with your defined data will be created.
This is very useful and saves a lot of time.
To bust the cache a simple “n98-magerun.phar cf” will do the job.
Happy working with n98-magerun!