Released version 1.81.0

You don’t like Mondays? I hope this gives you a good start in the new week.
We published a new n98-magerun release and packed some nice features in it.

Script Features

The script command will be more powerful.
We changed the behavior of variables initalized with “?” for example ${foo}=?.
If you define a variable from outside n98-magerun will not prompt anymore. This give you the power
to write parameterized scripts.
(more…)

Tip: Create a Console Helper

Since version 1.77.0 we provide an easy registration of console helpers.
Console Helpers are way to share functionality with other commands.

I will show you how easy it is to create such a helper.
Out example helper will return the current system time.

Create a new module

Create a new folder in your home directory with the name “.n98-magerun/modules/example-module”.

mkdir -p ~/.n98-magerun/modules/example-module

(more…)

Released Version 1.78.0

We deployed a new stable n98-magerun version with some internal changes which are great if you are developing custom database driven commands.
The new version contains also some minor features and uncritical bugfixes.

New Database Helper

In some cases it’s useful to run commands directly on your database. In the past it was usual to extend the class AbstractDatabaseCommand and call methods like _getConnection which returns a PDO Object.

We now ported all methods of this abstract class to a new console helper which can be called in command context.
It’s very easy to use the database functions.

Example:

(more…)

Use n98-magerun Script Repository

Since some releases we support script. Scripts are like batch files which can be executed and reused in all your local Magento installations. For everyone who is not fimilar with n98-magerun script I gave a little instruction how the scripts can be created.

My first n98-magerun script

Scripts can do three things…

  1. Register variables
  2. Run shell commands
  3. Run n98-magerun commands
    (more…)