Categories
Magerun

Released n98-magerun Version 1.92.0

We have deployed a new n98-magerun version with only one new command but many improvements which makes the
tool more stable in daily usage.

New features/optimizations

Disable root warning

root_warning

It’s now possible to supress the “It’s not recommended to run n98-magerun as root user” warning.
This can be useful i.e. during a deployment which runs as root-user. In this case you can create
a system wide config on the remote host in file “/etc/n98-magerun.yaml” with this content:

  • #332 make WARNING_ROOT_USER configurable/optional (by Christian Münch)

Remove setup resources

Removes the entry for one or all module resource setups. This command is useful if you want to re-run an install
script again possibly due to debugging. Alternatively you would have to remove the row from the database manually.

  • #392 Add remove setup resource command (by Aydin Hassan)

Create dummy users with addresses

A new option was added to the customer:create:dummy command which allows automatic address creation.

customer_addresses

  • #397 Added option to create dummy customer with an address (by Gilles Doge)

Better observer list

A new event area “crontab” was added. All events are now sorted and the type of the observer is visible in the table.

observer_list

  • #413 Enhanced dev:module:observer:list (by Cyrill Schumacher)

Improvements

  • #387 Unlink sym-linked folders instead of recursively removing (by Aydin Hassan)
  • #390 Some documentation updates (by Aydin Hassan)
  • #391 Fixed broken filters in dev:module:list command (by Tjerk Ameel)
  • #393 Optimize failing on long lines (by Alexander Menk)
  • #400 Added adminhtml_cache_refresh_type event (by Marc Päpper)
  • #403 Sys setup incremental tiny fixes (by Cyrill Schumacher)
  • #407 Check for Enterprise_PageCache presence before using it (by Vinai Kopp)

Other updates and fixes

  • Changed db:dump strip settings (by Alexander Menk)
  • Updated 3rd party components (Symfony, PHPUnit, Twig)

Please update to the latest version by:

I hope the new version let you more efficient in the daily work with Magento. Have fun!

Categories
Magerun

Released n98-magerun version 1.91.0

We are happy to present you a new stable release of n98-magerun.
The new release contains many new features and some enables users of Microsoft Windows some features which was only
available for MacOS/Linux users.

Let’s see what we have changed since the last release…

Remove Admin-Users and Customers

We have two new commands to remove admin (backend) users and (frontend) customers.

Customers can be deleted by a ID range or by defining a email address.

Example:

As analog command we have the new command to delete an admin user:

  • #370 Remove Admin Users (by Aydin Hassan)
  • #380 Customer delete command (by Michael Woodward)

Better Microsoft Windows Support

We added support for user config and n98-magerun modules.
Now you can add your own user specific config in %userprofile% folder. To make it a little bit easier we removed the leading
dot which is normal on Unix but could produce problems on Windows machines.
A system wide config is also possible under the path %windir%\n98-magerun.yaml

For an overview please refer the wiki pages:

Generate model method for magic getter/setter

We added our first command to a new command namespace “code”. The namespace is designed to add code generator command to n98-magerun.
We start with a command to generate getter/setter of models.

Before (do not use this with code models):

method_annotations_after

After:

method_annotations_before

  • #376 New command dev:code:model:method (by Cyrill Schumacher)

Change Resource Versions

A very useful new command sys:setup:change-version allows you to set the version of a single resource setup or of all
resource setups of a module from cli.

  • #382 Change module version command (by Michael Woodward)

Other fixes and enhancements

  • #299 Removed header if format parameter is passed (by Christian Münch)
  • #303 Please warn instead of blocking input (by Christian Münch)
  • #315 sys:setup:run on enterprise requires admin session. (by Thorsten Essig and Christian Münch)
  • #362 db:import –optimize: Cut line in 8MB pieces (by Alexander Menk)
  • #367 Exclude sessions from @stripped (and therefore @development) (by Aaron Brady)
  • #368 Skip sys:setup:incremental’s Version Check (by Alan Storm)
  • #369 get use_rewrites/use_secure from config (Kristof Ringleff)
  • #352 Added –stop-on-error option. (by Christian Münch)
  • #372 print root warning to std_error (by Edward Rowley)
  • #373 Refactored local-config:generate command (by Rouven Rieker)
  • sys:info command: Added row count for main entities (by Christian Münch)
  • sys:setup returns exit status code “1” if setup fails (by Christian Münch)
  • Updated 3rd party components (Symfony, PHPUnit, Twig)

Update

Please run n98-magerun.phar self-update to fetch the new version.