Categories
Magerun

Our Magento Imagine gift: n98-magerun2 version 1.4.0 is out!

Like promised in a tweet we deployed the stable version of n98-magerun2 before the start of Magento Imagine 2017. The new release contains five new commands and some bugfixes.

Features

List EAV attributes

My colleague Jürgen Thelen ported two Magerun 1 commands to V2. One of it is “eav:attribute:list” which can give you a list of all your EAV attibutes.

n98-magerun2.phar eav:attribute:list

The output is a list of attributes which can filtered by entity type.

n98-magerun2.phar eav:attribute:list –add-source –add-backend –filter-type=customer

Clear your asset cache

The second command ported by Jürgen is to clear static assets.

n98-magerun2.phar dev:asset:clear

After the deletion you get a list of the affected files.

Print the merged XML config data

It’s now possible to see the ACL tree in correct order.

n98-magerun2.phar config:data:acl

The second config related command prints the “DI config”. It can be filtered by scope/area.

Example:

n98-magerun2.phar config:data:di --scope webapi_soap "Magento\Framework\App\FrontControllerInterface"

Output:

Bugfixes

  • sys:cron:schedule ‘area code is not set’ exception. (by Pieter Hoste, #277)
  • Allow -1 as value for infinite max nesting level for xdebug (by Peter Jaap, #278)
  • Generate a shorter version of registration.php (by Alexander Turiak #280)
Categories
Magerun

Released version 1.83.0

The year is coming to an end. This didn’t stops us to deploy a new n98-magerun release for the world.

These are the changes and fixes:

Categories
Magerun Tips

Tip: Use aliases to quick reference Magento XML config

Magento’s merged XML config is very huge but not all parts must be referenced during development. Some parts are really important for debugging.
To do this smart n98-magerun offers the “config:dump” command which prints all the merged XML config at once.
As second parameter you can add an XQuery like argument.