Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents...

257
n98-magerun Documentation Release 1.0.0 netz98 new media GmbH April 17, 2015

Transcript of Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents...

Page 1: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun DocumentationRelease 1.0.0

netz98 new media GmbH

April 17, 2015

Page 2: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .
Page 3: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

Contents

1 Overview 31.1 Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

2 Installation/Update 52.1 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52.2 Update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

3 Standalone Commands 73.1 help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.2 install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.3 list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143.4 open-browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153.5 script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173.6 shell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193.7 uninstall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

4 Admin Commands 254.1 admin:notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254.2 admin:user:change-password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274.3 admin:user:create . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294.4 admin:user:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

5 Cache Commands 355.1 cache:clean . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355.2 cache:disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375.3 cache:enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395.4 cache:flush . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415.5 cache:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

6 Composer Commands 456.1 composer:diagnose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456.2 composer:init . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476.3 composer:install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506.4 composer:require . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546.5 composer:search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 576.6 composer:update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 596.7 composer:validate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

7 Config Commands 67

i

Page 4: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

7.1 config:delete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 677.2 config:dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 697.3 config:get . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 727.4 config:search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 757.5 config:set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

8 Customer Commands 818.1 customer:change-password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 818.2 customer:create . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 838.3 customer:create:dummy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 868.4 customer:info . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 898.5 customer:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91

9 Db Commands 959.1 db:console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 959.2 db:create . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 979.3 db:drop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 999.4 db:dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1019.5 db:import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1059.6 db:info . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1089.7 db:query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110

10 Design Commands 11310.1 design:demo-notice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

11 Dev Commands 11711.1 dev:class:lookup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11711.2 dev:console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11911.3 dev:ide:phpstorm:meta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12111.4 dev:log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12311.5 dev:log:db . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12511.6 dev:log:size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12811.7 dev:module:create . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13011.8 dev:module:dependencies:from . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13411.9 dev:module:dependencies:on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13611.10 dev:module:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13811.11 dev:module:observer:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14111.12 dev:module:rewrite:conflicts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14311.13 dev:module:rewrite:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14511.14 dev:profiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14711.15 dev:report:count . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14911.16 dev:setup:script:attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15111.17 dev:symlinks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15311.18 dev:template-hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15611.19 dev:template-hints-blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15811.20 dev:theme:duplicates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16111.21 dev:theme:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16311.22 dev:translate:admin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16511.23 dev:translate:shop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167

12 Extension Commands 17112.1 extension:download . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17112.2 extension:install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17312.3 extension:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17512.4 extension:upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177

ii

Page 5: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

13 Index Commands 18113.1 index:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18113.2 index:reindex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18313.3 index:reindex:all . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185

14 Local-config Commands 18914.1 local-config:generate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189

15 Script Commands 19315.1 script:repo:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19315.2 script:repo:run . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195

16 Standalone Commands 19916.1 help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19916.2 install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20216.3 list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20616.4 open-browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20716.5 script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20916.6 shell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21216.7 uninstall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214

17 Sys Commands 21717.1 sys:check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21717.2 sys:cron:history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21917.3 sys:cron:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22117.4 sys:cron:run . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22217.5 sys:info . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22417.6 sys:maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22617.7 sys:setup:compare-versions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22817.8 sys:setup:run . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23017.9 sys:store:config:base-url:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23217.10 sys:store:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23417.11 sys:url:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23617.12 sys:website:list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239

18 Uml Commands 24318.1 uml:generate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243

19 Copyrights 247

20 Command Reference 249

21 Indices and tables 251

iii

Page 6: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

iv

Page 7: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Contents:

Contents 1

Page 8: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

2 Contents

Page 9: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 1

Overview

The n98 magerun cli tools provides some handy tools to work with Magento from command line.

1.1 Compatibility

The tools will automatically be tested for multiple PHP versions (5.3, 5.4, 5.5). It’s currently currently running invarious Linux distributions and Mac OS X. Microsoft Windows is not fully supported (some Commands like db:dumpor install are excluded).

The tool partially works with Magento 2 development branch.

3

Page 10: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

4 Chapter 1. Overview

Page 11: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 2

Installation/Update

2.1 Installation

There are two ways to install the tools:

2.1.1 Download phar file

wget https://raw.github.com/netz98/n98-magerun/master/n98-magerun.phar

or if you have problems with SSL certificate:

curl -o n98-magerun.phar https://raw.github.com/netz98/n98-magerun/master/n98-magerun.phar

You can make the .phar file executable.

chmod +x ./n98-magerun.phar

If you want to use command system wide you can copy it to /usr/local/bin.

sudo cp ./n98-magerun.phar /usr/local/bin/

Debian / suhosin:

On some debian systems with compiled in suhosin the phar extension must be added to a whitelist.

Add this to your php.ini file:

suhosin.executor.include.whitelist="phar"

You don’t like the filename?

Just rename it to whatever you want.

2.1.2 Install with Composer

https://github.com/netz98/n98-magerun/wiki/Install-from-source-with-Composer

2.2 Update

Since version 1.1.0 we deliver a self-update script within the phar file:

5

Page 12: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

$ n98-magerun.phar self-update

If file was installed system wide do not forget “sudo”.

See it in action: http://youtu.be/wMHpfKD9vjM

6 Chapter 2. Installation/Update

Page 13: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 3

Standalone Commands

3.1 help

Displays help for a command

The <info>help</info> command displays help for a given command:

<info>php /home/cmuench/Workspaces/PHP/opensource/n98-magerun/bin/n98-magerunhelp list</info>

You can also output the help in other formats by using the <comment>–format</comment> option:

<info>php /home/cmuench/Workspaces/PHP/opensource/n98-magerun/bin/n98-magerunhelp –format=xml list</info>

To display the list of available commands, please use the <info>list</info> command.

Usage:

$ n98-magerun.phar help [--xml] [--format="..."] [--raw] [command_name]

3.1.1 Arguments

command_name

Is required: No

Is array: No

Description: The command name

Default: help

3.1.2 Options

–xml

Description: To output help as XML

Shortcut:

Accept value: No

Is value required: No

7

Page 14: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–format

Description: To output help in other formats

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–raw

Description: To output raw command help

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

8 Chapter 3. Standalone Commands

Page 15: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

3.1. help 9

Page 16: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

3.2 install

Install magento

Usage:

$ n98-magerun.phar install [--magentoVersion[="..."]] [--magentoVersionByName[="..."]] [--installationFolder[="..."]] [--dbHost[="..."]] [--dbUser[="..."]] [--dbPass[="..."]] [--dbName[="..."]] [--installSampleData[="..."]] [--useDefaultConfigParams[="..."]] [--baseUrl[="..."]] [--replaceHtaccessFile[="..."]]

3.2.1 Options

–magentoVersion

Description: Magento version

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–magentoVersionByName

Description: Magento version name instead of order number

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–installationFolder

Description: Installation folder

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–dbHost

Description: Database host

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

10 Chapter 3. Standalone Commands

Page 17: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–dbUser

Description: Database user

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–dbPass

Description: Database password

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–dbName

Description: Database name

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–installSampleData

Description: Install sample data

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–useDefaultConfigParams

Description: Use default installation parameters defined in the yaml file

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

3.2. install 11

Page 18: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–baseUrl

Description: Installation base url

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–replaceHtaccessFile

Description: Generate htaccess file (for non vhost environment)

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

12 Chapter 3. Standalone Commands

Page 19: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

3.2. install 13

Page 20: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

3.3 list

Lists commands

The <info>list</info> command lists all commands:

<info>php /home/cmuench/Workspaces/PHP/opensource/n98-magerun/bin/n98-magerunlist</info>

You can also display the commands for a specific namespace:

<info>php /home/cmuench/Workspaces/PHP/opensource/n98-magerun/bin/n98-magerunlist test</info>

You can also output the information in other formats by using the <comment>–format</comment> option:

<info>php /home/cmuench/Workspaces/PHP/opensource/n98-magerun/bin/n98-magerunlist –format=xml</info>

It's also possible to get raw list of commands (useful for embedding command runner):

<info>php /home/cmuench/Workspaces/PHP/opensource/n98-magerun/bin/n98-magerunlist –raw</info>

Usage:

$ n98-magerun.phar list [--xml] [--raw] [--format="..."] [namespace]

3.3.1 Arguments

namespace

Is required: No

Is array: No

Description: The namespace name

Default: n/a

3.3.2 Options

–xml

Description: To output list as XML

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–raw

Description: To output raw command list

Shortcut:

14 Chapter 3. Standalone Commands

Page 21: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–format

Description: To output list in other formats

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

3.4 open-browser

Open current project in browser <comment>(experimental)</comment>

Usage:

$ n98-magerun.phar open-browser [store]

3.4.1 Arguments

store

Is required: No

Is array: No

Description: Store code or ID

Default: n/a

3.4.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

3.4. open-browser 15

Page 22: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

16 Chapter 3. Standalone Commands

Page 23: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

3.5 script

Runs multiple n98-magerun commands

Usage:

$ n98-magerun.phar script [-d|--define[="..."]] [filename]

3.5.1 Arguments

filename

Is required: No

Is array: No

Description: Script file

Default: n/a

3.5.2 Options

–define

Description: Defines a variable

Shortcut: -d

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

3.5. script 17

Page 24: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

18 Chapter 3. Standalone Commands

Page 25: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

3.6 shell

Runs n98-magerun as shell

Usage:

$ n98-magerun.phar shell

3.6.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

3.6. shell 19

Page 26: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

20 Chapter 3. Standalone Commands

Page 27: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

3.7 uninstall

Uninstall magento (drops database and empties current folder

Usage:

$ n98-magerun.phar uninstall [-f|--force]

3.7.1 Options

–force

Description: Force

Shortcut: -f

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

3.7. uninstall 21

Page 28: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

22 Chapter 3. Standalone Commands

Page 29: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

3.7. uninstall 23

Page 30: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

24 Chapter 3. Standalone Commands

Page 31: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 4

Admin Commands

4.1 admin:notifications

Toggles admin notifications

Usage:

$ n98-magerun.phar admin:notifications [--on] [--off]

4.1.1 Options

–on

Description: Switch on

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–off

Description: Switch off

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

25

Page 32: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

26 Chapter 4. Admin Commands

Page 33: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

4.2 admin:user:change-password

Changes the password of a adminhtml user.

Usage:

$ n98-magerun.phar admin:user:change-password [username] [password]

4.2.1 Arguments

username

Is required: No

Is array: No

Description: Username

Default: n/a

password

Is required: No

Is array: No

Description: Password

Default: n/a

4.2. admin:user:change-password 27

Page 34: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

4.2.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

28 Chapter 4. Admin Commands

Page 35: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

4.3 admin:user:create

Create admin user.

Usage:

$ n98-magerun.phar admin:user:create [username] [email] [password] [firstname] [lastname] [role]

4.3.1 Arguments

username

Is required: No

Is array: No

Description: Username

Default: n/a

email

4.3. admin:user:create 29

Page 36: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is required: No

Is array: No

Description: Email, empty string = generate

Default: n/a

password

Is required: No

Is array: No

Description: Password

Default: n/a

firstname

Is required: No

Is array: No

Description: Firstname

Default: n/a

lastname

Is required: No

Is array: No

Description: Lastname

Default: n/a

role

Is required: No

Is array: No

Description: Role

Default: n/a

4.3.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

30 Chapter 4. Admin Commands

Page 37: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

4.3. admin:user:create 31

Page 38: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

4.4 admin:user:list

List admin users.

Usage:

$ n98-magerun.phar admin:user:list

4.4.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

32 Chapter 4. Admin Commands

Page 39: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

4.4. admin:user:list 33

Page 40: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

34 Chapter 4. Admin Commands

Page 41: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 5

Cache Commands

5.1 cache:clean

Clean magento cache

Cleans expired cache entries. If you like to remove all entries use cache:flush Or only one cache type like i.e. full_pagecache:

$ n98-magerun.phar cache:clean full_page

Usage:

$ n98-magerun.phar cache:clean [type]

5.1.1 Arguments

type

Is required: No

Is array: No

Description: Cache type code like "config"

Default: n/a

5.1.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

35

Page 42: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

36 Chapter 5. Cache Commands

Page 43: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

5.2 cache:disable

Disables magento caches

Usage:

$ n98-magerun.phar cache:disable

5.2.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

5.2. cache:disable 37

Page 44: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

38 Chapter 5. Cache Commands

Page 45: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

5.3 cache:enable

Enables magento caches

Usage:

$ n98-magerun.phar cache:enable

5.3.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

5.3. cache:enable 39

Page 46: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

40 Chapter 5. Cache Commands

Page 47: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

5.4 cache:flush

Flush magento cache storage

Usage:

$ n98-magerun.phar cache:flush

5.4.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

5.4. cache:flush 41

Page 48: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

5.5 cache:list

Lists all magento caches

Usage:

$ n98-magerun.phar cache:list

42 Chapter 5. Cache Commands

Page 49: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

5.5.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

5.5. cache:list 43

Page 50: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

44 Chapter 5. Cache Commands

Page 51: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 6

Composer Commands

6.1 composer:diagnose

Diagnoses the system to identify common errors.

The <info>diagnose</info> command checks common errors to help debugging prob-lems.

Usage:

$ n98-magerun.phar composer:diagnose

6.1.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

45

Page 52: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

46 Chapter 6. Composer Commands

Page 53: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

6.2 composer:init

Creates a basic composer.json file in current directory.

The <info>init</info> command creates a basic composer.json file in the current di-rectory.

<info>php composer.phar init</info>

Usage:

$ n98-magerun.phar composer:init [--name="..."] [--description="..."] [--author="..."] [--homepage="..."] [--require="..."] [--require-dev="..."] [-s|--stability="..."] [-l|--license="..."]

6.2.1 Options

–name

Description: Name of the package

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–description

Description: Description of package

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–author

Description: Author name of package

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–homepage

6.2. composer:init 47

Page 54: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Homepage of package

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–require

Description: Package to require with a version constraint, e.g. foo/bar:1.0.0 or foo/bar=1.0.0 or"foo/bar 1.0.0"

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–require-dev

Description: Package to require for development with a version constraint, e.g. foo/bar:1.0.0 orfoo/bar=1.0.0 or "foo/bar 1.0.0"

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–stability

Description: Minimum stability (empty or one of: stable, RC, beta, alpha, dev)

Shortcut: -s

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–license

Description: License of package

Shortcut: -l

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

48 Chapter 6. Composer Commands

Page 55: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

6.2. composer:init 49

Page 56: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

6.3 composer:install

Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.

The <info>install</info> command reads the composer.lock file from the current di-rectory, processes it, and downloads and installs all the libraries and dependencies outlined in that file. If the file doesnot exist it will look for composer.json and do the same.

<info>php composer.phar install</info>

Usage:

$ n98-magerun.phar composer:install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader]

6.3.1 Options

–prefer-source

Description: Forces installation from package sources when possible, including VCS information.

Shortcut:

Accept value: No

50 Chapter 6. Composer Commands

Page 57: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–prefer-dist

Description: Forces installation from package dist even for dev versions.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–dry-run

Description: Outputs the operations but will not execute anything (implicitly enables –verbose).

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–dev

Description: Enables installation of require-dev packages (enabled by default, only present for BC).

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-dev

Description: Disables installation of require-dev packages.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-plugins

Description: Disables all plugins.

Shortcut:

Accept value: No

Is value required: No

6.3. composer:install 51

Page 58: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–no-custom-installers

Description: DEPRECATED: Use no-plugins instead.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-scripts

Description: Skips the execution of all scripts defined in composer.json file.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-progress

Description: Do not output download progress.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–optimize-autoloader

Description: Optimize autoloader during autoloader dump

Shortcut: -o

Accept value: No

Is value required: No

52 Chapter 6. Composer Commands

Page 59: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

6.3. composer:install 53

Page 60: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

6.4 composer:require

Adds required packages to your composer.json and installs them

The require command adds required packages to your composer.json and installs them

If you do not want to install the new dependencies immediately you can call it with –no-update

Usage:

$ n98-magerun.phar composer:require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [packages1] ... [packagesN]

6.4.1 Arguments

packages

Is required: No

Is array: Yes

Description: Required package with a version constraint, e.g. foo/bar:1.0.0 or foo/bar=1.0.0 or"foo/bar 1.0.0"

Default: n/a

6.4.2 Options

–dev

Description: Add requirement to require-dev.

Shortcut:

54 Chapter 6. Composer Commands

Page 61: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–prefer-source

Description: Forces installation from package sources when possible, including VCS information.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–prefer-dist

Description: Forces installation from package dist even for dev versions.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-progress

Description: Do not output download progress.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-update

Description: Disables the automatic update of the dependencies.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

6.4. composer:require 55

Page 62: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

56 Chapter 6. Composer Commands

Page 63: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

6.5 composer:search

Search for packages

The search command searches for packages by its name <info>php composer.phar search symfonycomposer</info>

Usage:

$ n98-magerun.phar composer:search [-N|--only-name] tokens1 ... [tokensN]

6.5.1 Arguments

tokens

Is required: Yes

Is array: Yes

Description: tokens to search for

Default: n/a

6.5. composer:search 57

Page 64: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

6.5.2 Options

–only-name

Description: Search only in name

Shortcut: -N

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

58 Chapter 6. Composer Commands

Page 65: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

6.6 composer:update

Updates your dependencies to the latest version according to composer.json, and updates the composer.lock file.

The <info>update</info> command reads the composer.json file from the current di-rectory, processes it, and updates, removes or installs all the dependencies.

<info>php composer.phar update</info>

To limit the update operation to a few packages, you can list the package(s) you want to update as such:

6.6. composer:update 59

Page 66: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

<info>php composer.phar update vendor/package1 foo/mypackage [...]</info>

Usage:

$ n98-magerun.phar composer:update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]

6.6.1 Arguments

packages

Is required: No

Is array: Yes

Description: Packages that should be updated, if not provided all packages are.

Default: n/a

6.6.2 Options

–prefer-source

Description: Forces installation from package sources when possible, including VCS information.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–prefer-dist

Description: Forces installation from package dist even for dev versions.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–dry-run

Description: Outputs the operations but will not execute anything (implicitly enables –verbose).

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–dev

60 Chapter 6. Composer Commands

Page 67: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Enables installation of require-dev packages (enabled by default, only present for BC).

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-dev

Description: Disables installation of require-dev packages.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–lock

Description: Only updates the lock file hash to suppress warning about the lock file being out of date.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-plugins

Description: Disables all plugins.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-custom-installers

Description: DEPRECATED: Use no-plugins instead.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-scripts

6.6. composer:update 61

Page 68: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Skips the execution of all scripts defined in composer.json file.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-progress

Description: Do not output download progress.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–optimize-autoloader

Description: Optimize autoloader during autoloader dump

Shortcut: -o

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

62 Chapter 6. Composer Commands

Page 69: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

6.6. composer:update 63

Page 70: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

6.7 composer:validate

Validates a composer.json

The validate command validates a given composer.json

Usage:

$ n98-magerun.phar composer:validate [file]

6.7.1 Arguments

file

Is required: No

Is array: No

Description: path to composer.json file

Default: ./composer.json

6.7.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

64 Chapter 6. Composer Commands

Page 71: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

6.7. composer:validate 65

Page 72: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

66 Chapter 6. Composer Commands

Page 73: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 7

Config Commands

7.1 config:delete

Deletes a store config item

To delete all entries if a path you can set the option –all.

Usage:

$ n98-magerun.phar config:delete [--scope[="..."]] [--scope-id[="..."]] [--all] path

7.1.1 Arguments

path

Is required: Yes

Is array: No

Description: The config path

Default: n/a

7.1.2 Options

–scope

Description: The config value's scope (default, websites, stores)

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: default

–scope-id

Description: The config value's scope ID

Shortcut:

Accept value: No

67

Page 74: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–all

Description: Delete all entries by path

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

68 Chapter 7. Config Commands

Page 75: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

7.2 config:dump

Dump merged xml config

Dumps merged XML configuration to stdout. Useful to see all the XML. You can filter the XML with first argument.

7.2. config:dump 69

Page 76: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Examples:

Config of catalog module

$ n98-magerun.phar config:dump global/catalog

See module order in XML

$ n98-magerun.phar config:dump modules

Write output to file

$ n98-magerun.phar config:dump > extern_file.xml

Usage:

$ n98-magerun.phar config:dump [xpath]

7.2.1 Arguments

xpath

Is required: No

Is array: No

Description: XPath to filter XML output

Default: n/a

7.2.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

70 Chapter 7. Config Commands

Page 77: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

7.2. config:dump 71

Page 78: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

7.3 config:get

Get a core config item

If <info>path</info> is not set, all available config items will belisted. The <info>path</info> may contain wildcards (*). If<info>path</info> ends with a trailing slash, all child items will be listed. E.g.

config:get web/

is the same as config:get web/*

Usage:

$ n98-magerun.phar config:get [--scope="..."] [--scope-id="..."] [--decrypt] [--update-script] [--magerun-script] [path]

7.3.1 Arguments

path

Is required: No

Is array: No

Description: The config path

Default: n/a

7.3.2 Options

–scope

Description: The config value's scope

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–scope-id

Description: The config value's scope ID

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

72 Chapter 7. Config Commands

Page 79: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–decrypt

Description: Decrypt the config value using local.xml's crypt key

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–update-script

Description: Output as update script lines

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–magerun-script

Description: Output for usage with config:set

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

7.3. config:get 73

Page 80: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

74 Chapter 7. Config Commands

Page 81: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

7.4 config:search

Search system configuration descriptions.

Searches the merged system.xml configuration tree <labels/> and<comments/> for the indicated text.

Usage:

$ n98-magerun.phar config:search text

7.4.1 Arguments

text

Is required: Yes

Is array: No

Description: The text to search for

Default: n/a

7.4.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

7.4. config:search 75

Page 82: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

76 Chapter 7. Config Commands

Page 83: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

7.5 config:set

Set a core config item

Set a store config value by path. To set a value of a specify store view you must set the "scope"and "scope-id" option.

Usage:

$ n98-magerun.phar config:set [--scope[="..."]] [--scope-id[="..."]] [--encrypt] path value

7.5.1 Arguments

path

Is required: Yes

Is array: No

Description: The config path

Default: n/a

value

Is required: Yes

Is array: No

Description: The config value

Default: n/a

7.5.2 Options

–scope

Description: The config value's scope (default, websites, stores)

Shortcut:

Accept value: No

Is value required: No

7.5. config:set 77

Page 84: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: default

–scope-id

Description: The config value's scope ID

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–encrypt

Description: The config value should be encrypted using local.xml's crypt key

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

78 Chapter 7. Config Commands

Page 85: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

7.5. config:set 79

Page 86: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

80 Chapter 7. Config Commands

Page 87: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 8

Customer Commands

8.1 customer:change-password

Changes the password of a customer.

• Website parameter must only be given if more than one websites are available.

Usage:

$ n98-magerun.phar customer:change-password [email] [password] [website]

8.1.1 Arguments

email

Is required: No

Is array: No

Description: Email

Default: n/a

password

Is required: No

Is array: No

Description: Password

Default: n/a

website

Is required: No

Is array: No

Description: Website of the customer

Default: n/a

81

Page 88: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

8.1.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

82 Chapter 8. Customer Commands

Page 89: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

8.2 customer:create

Creates a new customer/user for shop frontend.

Usage:

$ n98-magerun.phar customer:create [email] [password] [firstname] [lastname] [website]

8.2.1 Arguments

email

Is required: No

Is array: No

Description: Email

Default: n/a

password

8.2. customer:create 83

Page 90: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is required: No

Is array: No

Description: Password

Default: n/a

firstname

Is required: No

Is array: No

Description: Firstname

Default: n/a

lastname

Is required: No

Is array: No

Description: Lastname

Default: n/a

website

Is required: No

Is array: No

Description: Website

Default: n/a

8.2.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

84 Chapter 8. Customer Commands

Page 91: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

8.2. customer:create 85

Page 92: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

8.3 customer:create:dummy

Generate dummy customers. You can specify a count and a locale.

Supported Locales:

• cs_CZ

• ru_RU

• bg_BG

• en_US

• it_IT

• sr_RS

• sr_Cyrl_RS

• sr_Latn_RS

• pl_PL

• en_GB

• de_DE

• sk_SK

• fr_FR

• es_AR

• de_AT

Usage:

$ n98-magerun.phar customer:create:dummy count locale [website]

8.3.1 Arguments

count

Is required: Yes

Is array: No

Description: Count

Default: n/a

locale

86 Chapter 8. Customer Commands

Page 93: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is required: Yes

Is array: No

Description: Locale

Default: n/a

website

Is required: No

Is array: No

Description: Website

Default: n/a

8.3.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

8.3. customer:create:dummy 87

Page 94: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

88 Chapter 8. Customer Commands

Page 95: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

8.4 customer:info

Loads basic customer info by email address.

Usage:

$ n98-magerun.phar customer:info [email] [website]

8.4.1 Arguments

email

Is required: No

Is array: No

Description: Email

Default: n/a

website

Is required: No

Is array: No

Description: Website of the customer

Default: n/a

8.4.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

8.4. customer:info 89

Page 96: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

90 Chapter 8. Customer Commands

Page 97: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

8.5 customer:list

Lists customers

List customers. The output is limited to 1000 (can be changed by overriding config). If search parameter is given thecustomers are filtered (searchs in firstname, lastname and email).

Usage:

$ n98-magerun.phar customer:list [search]

8.5.1 Arguments

search

Is required: No

Is array: No

Description: Search query

Default: n/a

8.5.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

8.5. customer:list 91

Page 98: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

92 Chapter 8. Customer Commands

Page 99: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

8.5. customer:list 93

Page 100: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

94 Chapter 8. Customer Commands

Page 101: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 9

Db Commands

9.1 db:console

Opens mysql client by database config from local.xml

Usage:

$ n98-magerun.phar db:console

9.1.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

95

Page 102: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

96 Chapter 9. Db Commands

Page 103: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

9.2 db:create

Create currently configured database

The command tries to create the configured database according to your settings in app/etc/local.xml. The configureduser must have "CREATE DATABASE" privileges on MySQL Server.

Usage:

$ n98-magerun.phar db:create

9.2.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

9.2. db:create 97

Page 104: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

98 Chapter 9. Db Commands

Page 105: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

9.3 db:drop

Drop current database

The command prompts before dropping the database. If –force option is specified it directly drops the database. Theconfigured user in app/etc/local.xml must have "DROP" privileges.

Usage:

$ n98-magerun.phar db:drop [-f|--force]

9.3.1 Options

–force

Description: Force

Shortcut: -f

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

9.3. db:drop 99

Page 106: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

100 Chapter 9. Db Commands

Page 107: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

9.4 db:dump

Dumps database with mysqldump cli client according to informations from local.xml

Dumps configured magento database with mysqldump. You must have installed the MySQL client tools.

On debian systems run apt-get install mysql-client to do that.

The command reads app/etc/local.xml to find the correct settings. If you like to skip data of some tables you can usethe –strip option. The strip option creates only the structure of the defined tables and forces mysqldump to skip thedata.

Dumps your database and excludes some tables. This is useful i.e. for development.

Separate each table to strip by a space. You can use wildcards like * and ? in the table names to strip multiple tables. Inaddition you can specify pre-defined table groups, that start with an @ Example: "dataflow_batch_exportunimportant_module_* @log

$ n98-magerun.phar db:dump –strip="@stripped"

Available Table Groups:

• @log Log tables

• @dataflowtemp Temporary tables of the dataflow import/export tool

• @stripped Standard definition for a stripped dump (logs and dataflow)

• @sales Sales data (orders, invoices, creditmemos etc)

• @customers Customer data

• @trade Current trade data (customers and orders). You usally do not want those in developer systems.

• @development Removes logs and trade data so developers do not have to work with real customer data

Extended: https://github.com/netz98/n98-magerun/wiki/Stripped-Database-Dumps

See it in action: http://youtu.be/ttjZHY6vThs

• If you like to prepend a timestamp to the dump name the –add-time option can be used.

• The command comes with a compression function. Add i.e. –compress=gz to dump directly in

gzip compressed file.

<comment>Compression option</comment> Supported compression: gzipThe gzip cli tool has to be installed. Additionally, for data-to-csv option tar cli tool has to be installed too.

<comment>Strip option</comment> Separate each table to strip by a space.You can use wildcards like * and ? in the table names to strip multiple tables. In addition you can specify pre-defined table groups, that start with an @ Example: "dataflow_batch_export unimportant_module_*@log

<comment>Available Table Groups</comment><info>@log</info> Log tables <info>@dataflowtemp</info>Temporary tables of the dataflow import/export tool <info>@stripped</info>Standard definition for a stripped dump (logs and dataflow) <info>@sales</info>Sales data (orders, invoices, creditmemos etc) <info>@customers</info> Cus-tomer data - Should not be used without @sales <info>@trade</info>Current trade data (customers and orders). You usally do not want those in developer systems.

9.4. db:dump 101

Page 108: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

<info>@development</info> Removes logs and trade data so developersdo not have to work with real customer data <info>@ee_changelog</info>Changelog tables of new indexer since EE 1.13 <info>@idx</info> Tables with_idx suffix

Usage:

$ n98-magerun.phar db:dump [-t|--add-time[="..."]] [-c|--compression="..."] [--only-command] [--print-only-filename] [--no-single-transaction] [--human-readable] [--stdout] [-s|--strip[="..."]] [-f|--force] [filename]

9.4.1 Arguments

filename

Is required: No

Is array: No

Description: Dump filename

Default: n/a

9.4.2 Options

–add-time

Description: Adds time to filename (only if filename was not provided)

Shortcut: -t

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–compression

Description: Compress the dump file using one of the supported algorithms

Shortcut: -c

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–only-command

Description: Print only mysqldump command. Do not execute

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

102 Chapter 9. Db Commands

Page 109: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–print-only-filename

Description: Execute and prints no output except the dump filename

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-single-transaction

Description: Do not use single-transaction (not recommended, this is blocking)

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–human-readable

Description: Use a single insert with column names per row. Useful to track database differences, butsignificantly slows down a later import

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–stdout

Description: Dump to stdout

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–strip

Description: Tables to strip (dump only structure of those tables)

Shortcut: -s

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

9.4. db:dump 103

Page 110: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–force

Description: Do not prompt if all options are defined

Shortcut: -f

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

104 Chapter 9. Db Commands

Page 111: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

9.5 db:import

Imports database with mysql cli client according to database defined in local.xml

Usage:

$ n98-magerun.phar db:import [-c|--compression="..."] [--only-command] [--only-if-empty] [filename]

9.5. db:import 105

Page 112: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

9.5.1 Arguments

filename

Is required: No

Is array: No

Description: Dump filename

Default: n/a

9.5.2 Options

–compression

Description: The compression of the specified file

Shortcut: -c

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–only-command

Description: Print only mysql command. Do not execute

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–only-if-empty

Description: Imports only if database is empty

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

106 Chapter 9. Db Commands

Page 113: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

9.5. db:import 107

Page 114: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

9.6 db:info

Dumps database informations

This command is useful to print all informations about the current configured database in app/etc/local.xml. It canprint connection string for JDBC, PDO connections.

Usage:

$ n98-magerun.phar db:info

9.6.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

108 Chapter 9. Db Commands

Page 115: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

9.6. db:info 109

Page 116: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

9.7 db:query

Executes an SQL query on the database defined in local.xml

Executes an SQL query on the current configured database. Wrap your SQL in single or double quotes.

If your query produces a result (e.g. a SELECT statement), the output of the mysql cli tool will be returned.

• Requires MySQL CLI tools installed on your system.

Usage:

$ n98-magerun.phar db:query [--only-command] [query]

9.7.1 Arguments

query

Is required: No

Is array: No

Description: SQL query

Default: n/a

9.7.2 Options

–only-command

Description: Print only mysql command. Do not execute

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

110 Chapter 9. Db Commands

Page 117: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

9.7. db:query 111

Page 118: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

112 Chapter 9. Db Commands

Page 119: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 10

Design Commands

10.1 design:demo-notice

Toggles demo store notice for a store view

Usage:

$ n98-magerun.phar design:demo-notice [--on] [--off] [--global] [store]

10.1.1 Arguments

store

Is required: No

Is array: No

Description: Store code or ID

Default: n/a

10.1.2 Options

–on

Description: Switch on

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–off

Description: Switch off

Shortcut:

Accept value: No

Is value required: No

113

Page 120: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–global

Description: Set value on default scope

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

114 Chapter 10. Design Commands

Page 121: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

10.1. design:demo-notice 115

Page 122: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

116 Chapter 10. Design Commands

Page 123: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 11

Dev Commands

11.1 dev:class:lookup

Resolves a grouped class name

Usage:

$ n98-magerun.phar dev:class:lookup type name

11.1.1 Arguments

type

Is required: Yes

Is array: No

Description: The type of the class (helper|block|model)

Default: n/a

name

Is required: Yes

Is array: No

Description: The grouped class name

Default: n/a

11.1.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

117

Page 124: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

118 Chapter 11. Dev Commands

Page 125: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.2 dev:console

Opens PHP interactive shell with initialized Mage::app() <comment>(Experimental)</comment>

Usage:

$ n98-magerun.phar dev:console

11.2.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.2. dev:console 119

Page 126: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

120 Chapter 11. Dev Commands

Page 127: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.3 dev:ide:phpstorm:meta

Generates meta data file for PhpStorm auto completion

Usage:

$ n98-magerun.phar dev:ide:phpstorm:meta [--stdout]

11.3.1 Options

–stdout

Description: Print to stdout instead of file .phpstorm.meta.php

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.3. dev:ide:phpstorm:meta 121

Page 128: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

122 Chapter 11. Dev Commands

Page 129: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.4 dev:log

Toggle development log (system.log, exception.log)

Usage:

$ n98-magerun.phar dev:log [--on] [--off] [--global] [store]

11.4.1 Arguments

store

Is required: No

Is array: No

Description: Store code or ID

Default: n/a

11.4.2 Options

–on

Description: Switch on

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–off

Description: Switch off

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.4. dev:log 123

Page 130: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–global

Description: Set value on default scope

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

124 Chapter 11. Dev Commands

Page 131: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.5 dev:log:db

Turn on/off database query logging

Usage:

$ n98-magerun.phar dev:log:db [--on] [--off]

11.5. dev:log:db 125

Page 132: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

11.5.1 Options

–on

Description: Force logging

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–off

Description: Disable logging

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

126 Chapter 11. Dev Commands

Page 133: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.5. dev:log:db 127

Page 134: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

11.6 dev:log:size

Get size of log file

Usage:

$ n98-magerun.phar dev:log:size [log_filename]

11.6.1 Arguments

log_filename

Is required: No

Is array: No

Description: Name of log file.

Default: n/a

11.6.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

128 Chapter 11. Dev Commands

Page 135: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.6. dev:log:size 129

Page 136: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

11.7 dev:module:create

Create and register a new magento module.

Usage:

$ n98-magerun.phar dev:module:create [--add-blocks] [--add-helpers] [--add-models] [--add-setup] [--add-all] [--modman] [--add-readme] [--add-composer] [--author-name[="..."]] [--author-email[="..."]] [--description[="..."]] vendorNamespace moduleName [codePool]

11.7.1 Arguments

vendorNamespace

Is required: Yes

Is array: No

Description: Namespace (your company prefix)

Default: n/a

moduleName

Is required: Yes

Is array: No

Description: Name of your module.

Default: n/a

codePool

Is required: No

Is array: No

Description: Codepool (local,community)

Default: local

11.7.2 Options

–add-blocks

Description: Adds blocks

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–add-helpers

Description: Adds helpers

Shortcut:

Accept value: No

Is value required: No

130 Chapter 11. Dev Commands

Page 137: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–add-models

Description: Adds models

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–add-setup

Description: Adds SQL setup

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–add-all

Description: Adds blocks, helpers and models

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–modman

Description: Create all files in folder with a modman file.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–add-readme

Description: Adds a readme.md file to generated module

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

11.7. dev:module:create 131

Page 138: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–add-composer

Description: Adds a composer.json file to generated module

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–author-name

Description: Author for readme.md or composer.json

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–author-email

Description: Author for readme.md or composer.json

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–description

Description: Description for readme.md or composer.json

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

132 Chapter 11. Dev Commands

Page 139: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.7. dev:module:create 133

Page 140: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.8 dev:module:dependencies:from

Show list of modules which depend on %s module

Usage:

$ n98-magerun.phar dev:module:dependencies:from [-a|--all] moduleName

11.8.1 Arguments

moduleName

Is required: Yes

Is array: No

Description: Module to show dependencies

Default: n/a

11.8.2 Options

–all

Description: Show all dependencies (dependencies of dependencies)

Shortcut: -a

Accept value: No

Is value required: No

Is multiple: No

134 Chapter 11. Dev Commands

Page 141: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

11.8. dev:module:dependencies:from 135

Page 142: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.9 dev:module:dependencies:on

Show list of modules which given module depends on

Usage:

$ n98-magerun.phar dev:module:dependencies:on [-a|--all] moduleName

11.9.1 Arguments

moduleName

Is required: Yes

Is array: No

Description: Module to show dependencies

Default: n/a

136 Chapter 11. Dev Commands

Page 143: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

11.9.2 Options

–all

Description: Show all dependencies (dependencies of dependencies)

Shortcut: -a

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

11.9. dev:module:dependencies:on 137

Page 144: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.10 dev:module:list

List all installed modules

Usage:

$ n98-magerun.phar dev:module:list [--codepool[="..."]] [--status[="..."]] [--vendor[="..."]]

138 Chapter 11. Dev Commands

Page 145: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

11.10.1 Options

–codepool

Description: Show modules in a specific codepool

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–status

Description: Show modules with a specific status

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–vendor

Description: Show modules of a specified vendor

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.10. dev:module:list 139

Page 146: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

140 Chapter 11. Dev Commands

Page 147: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.11 dev:module:observer:list

Lists all registered observers

Usage:

$ n98-magerun.phar dev:module:observer:list [type]

11.11.1 Arguments

type

Is required: No

Is array: No

Description: Observer type (global, admin, frontend)

Default: n/a

11.11.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.11. dev:module:observer:list 141

Page 148: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

142 Chapter 11. Dev Commands

Page 149: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.12 dev:module:rewrite:conflicts

Lists all magento rewrite conflicts

Lists all duplicated rewrites and tells you which class is loaded by Magento. The command checks class inheritancein order of your module dependencies.

• If a filename with –log-junit option is set the tool generates an XML file and no output to stdout.

Usage:

$ n98-magerun.phar dev:module:rewrite:conflicts [--log-junit="..."]

11.12.1 Options

–log-junit

Description: Log conflicts in JUnit XML format to defined file.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

11.12. dev:module:rewrite:conflicts 143

Page 150: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

144 Chapter 11. Dev Commands

Page 151: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.13 dev:module:rewrite:list

Lists all magento rewrites

Usage:

$ n98-magerun.phar dev:module:rewrite:list

11.13.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

11.13. dev:module:rewrite:list 145

Page 152: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

146 Chapter 11. Dev Commands

Page 153: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

11.14 dev:profiler

Toggles profiler for debugging

Usage:

$ n98-magerun.phar dev:profiler [--on] [--off] [--global] [store]

11.14.1 Arguments

store

Is required: No

Is array: No

Description: Store code or ID

Default: n/a

11.14.2 Options

–on

Description: Switch on

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–off

Description: Switch off

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–global

Description: Set value on default scope

Shortcut:

Accept value: No

11.14. dev:profiler 147

Page 154: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

148 Chapter 11. Dev Commands

Page 155: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.15 dev:report:count

Get count of report files

Usage:

$ n98-magerun.phar dev:report:count

11.15.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

11.15. dev:report:count 149

Page 156: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

150 Chapter 11. Dev Commands

Page 157: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.16 dev:setup:script:attribute

Creates attribute script for a given attribute code

Usage:

$ n98-magerun.phar dev:setup:script:attribute entityType attributeCode

11.16.1 Arguments

entityType

Is required: Yes

Is array: No

Description: Entity Type Code like catalog_product

Default: n/a

attributeCode

Is required: Yes

Is array: No

Description: Attribute Code

Default: n/a

11.16. dev:setup:script:attribute 151

Page 158: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

11.16.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

152 Chapter 11. Dev Commands

Page 159: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.17 dev:symlinks

Toggle allow symlinks setting

Usage:

$ n98-magerun.phar dev:symlinks [--on] [--off] [--global] [store]

11.17.1 Arguments

store

Is required: No

Is array: No

Description: Store code or ID

Default: n/a

11.17. dev:symlinks 153

Page 160: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

11.17.2 Options

–on

Description: Switch on

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–off

Description: Switch off

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–global

Description: Set value on default scope

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

154 Chapter 11. Dev Commands

Page 161: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.17. dev:symlinks 155

Page 162: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.18 dev:template-hints

Toggles template hints

Usage:

$ n98-magerun.phar dev:template-hints [--on] [--off] [store]

11.18.1 Arguments

store

Is required: No

Is array: No

Description: Store code or ID

Default: n/a

11.18.2 Options

–on

Description: Switch on

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–off

Description: Switch off

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

156 Chapter 11. Dev Commands

Page 163: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.18. dev:template-hints 157

Page 164: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.19 dev:template-hints-blocks

Toggles template hints block names

Usage:

$ n98-magerun.phar dev:template-hints-blocks [--on] [--off] [store]

11.19.1 Arguments

store

Is required: No

Is array: No

Description: Store code or ID

Default: n/a

158 Chapter 11. Dev Commands

Page 165: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

11.19.2 Options

–on

Description: Switch on

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–off

Description: Switch off

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

11.19. dev:template-hints-blocks 159

Page 166: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

160 Chapter 11. Dev Commands

Page 167: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

11.20 dev:theme:duplicates

Find duplicate files (templates, layout, locale, etc.) between two themes.

• If a filename with –log-junit option is set the tool generates an XML file and no output to stdout.

Usage:

$ n98-magerun.phar dev:theme:duplicates [--log-junit="..."] theme [originalTheme]

11.20.1 Arguments

theme

Is required: Yes

Is array: No

Description: Your theme

Default: n/a

originalTheme

Is required: No

Is array: No

Description: Original theme to comapre. Default is "base/default"

Default: base/default

11.20.2 Options

–log-junit

Description: Log duplicates in JUnit XML format to defined file.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

11.20. dev:theme:duplicates 161

Page 168: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

162 Chapter 11. Dev Commands

Page 169: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.21 dev:theme:list

Lists all available themes

Usage:

$ n98-magerun.phar dev:theme:list

11.21.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

11.21. dev:theme:list 163

Page 170: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

164 Chapter 11. Dev Commands

Page 171: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.22 dev:translate:admin

Toggle inline translation tool for admin

Usage:

$ n98-magerun.phar dev:translate:admin [--on] [--off]

11.22.1 Options

–on

Description: Switch on

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–off

Description: Switch off

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

11.22. dev:translate:admin 165

Page 172: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

166 Chapter 11. Dev Commands

Page 173: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.23 dev:translate:shop

Toggle inline translation tool for shop

Usage:

$ n98-magerun.phar dev:translate:shop [--on] [--off] [store]

11.23.1 Arguments

store

Is required: No

Is array: No

Description: Store code or ID

Default: n/a

11.23.2 Options

–on

Description: Switch on

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–off

11.23. dev:translate:shop 167

Page 174: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Switch off

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

168 Chapter 11. Dev Commands

Page 175: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

11.23. dev:translate:shop 169

Page 176: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

170 Chapter 11. Dev Commands

Page 177: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 12

Extension Commands

12.1 extension:download

Download magento-connect package

• Requires Magento's mage shell script.

• Does not work with Windows as operating system.

Usage:

$ n98-magerun.phar extension:download package

12.1.1 Arguments

package

Is required: Yes

Is array: No

Description: Package to download

Default: n/a

12.1.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

171

Page 178: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

172 Chapter 12. Extension Commands

Page 179: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

12.2 extension:install

Install magento-connect package

If the package could not be found a search for alternatives will be done. If alternatives could be found you can selectthe package to install.

• Requires Magento's mage shell script.

• Does not work with Windows as operating system.

Usage:

$ n98-magerun.phar extension:install package

12.2.1 Arguments

package

Is required: Yes

Is array: No

Description: Package to install

Default: n/a

12.2.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

12.2. extension:install 173

Page 180: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

174 Chapter 12. Extension Commands

Page 181: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

12.3 extension:list

List magento connection extensions

• Requires Magento's mage shell script.

• Does not work with Windows as operating system.

Usage:

$ n98-magerun.phar extension:list [search]

12.3.1 Arguments

search

Is required: No

Is array: No

Description: Search string

Default: n/a

12.3.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

12.3. extension:list 175

Page 182: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

176 Chapter 12. Extension Commands

Page 183: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

12.4 extension:upgrade

Upgrade magento-connect package

• Requires Magento's mage shell script.

• Does not work with Windows as operating system.

Usage:

$ n98-magerun.phar extension:upgrade package

12.4.1 Arguments

package

Is required: Yes

Is array: No

Description: Package to upgrade

Default: n/a

12.4. extension:upgrade 177

Page 184: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

12.4.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

178 Chapter 12. Extension Commands

Page 185: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

12.4. extension:upgrade 179

Page 186: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

180 Chapter 12. Extension Commands

Page 187: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 13

Index Commands

13.1 index:list

Lists all magento indexes

Usage:

$ n98-magerun.phar index:list

13.1.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

181

Page 188: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

182 Chapter 13. Index Commands

Page 189: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

13.2 index:reindex

Reindex a magento index by code

Index by indexer code. Code is optional. If you don't specify a code you can pick a indexer from a list.

$ n98-magerun.phar index:reindex [code]

Since 1.75.0 it's possible to run mutiple indexers by seperating code with a comma.

i.e.

$ n98-magerun.phar index:reindex catalog_product_attribute,tag_summary

If no index is provided as argument you can select indexers from menu by "number" like"1,3" for first and third indexer.

Usage:

$ n98-magerun.phar index:reindex [index_code]

13.2.1 Arguments

index_code

Is required: No

Is array: No

Description: Code of indexer.

Default: n/a

13.2.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

13.2. index:reindex 183

Page 190: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

184 Chapter 13. Index Commands

Page 191: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

13.3 index:reindex:all

Reindex all magento indexes

Loops all magento indexes and triggers reindex.

Usage:

$ n98-magerun.phar index:reindex:all

13.3.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

13.3. index:reindex:all 185

Page 192: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

186 Chapter 13. Index Commands

Page 193: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

13.3. index:reindex:all 187

Page 194: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

188 Chapter 13. Index Commands

Page 195: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 14

Local-config Commands

14.1 local-config:generate

Generates local.xml config

Generates the app/etc/local.xml.

• The file "app/etc/local.xml.template" (bundles with Magento) must exist!

• Currently the command does not validate anything you enter.

• The command will not overwrite existing app/etc/local.xml files.

Usage:

$ n98-magerun.phar local-config:generate [db-host] [db-user] [db-pass] [db-name] [session-save] [admin-frontname]

14.1.1 Arguments

db-host

Is required: No

Is array: No

Description: Database host

Default: n/a

db-user

Is required: No

Is array: No

Description: Database user

Default: n/a

db-pass

Is required: No

Is array: No

Description: Database password

Default: n/a

189

Page 196: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

db-name

Is required: No

Is array: No

Description: Database name

Default: n/a

session-save

Is required: No

Is array: No

Description: Session storage adapter

Default: n/a

admin-frontname

Is required: No

Is array: No

Description: Admin front name

Default: n/a

14.1.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

190 Chapter 14. Local-config Commands

Page 197: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

14.1. local-config:generate 191

Page 198: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

192 Chapter 14. Local-config Commands

Page 199: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 15

Script Commands

15.1 script:repo:list

Lists all scripts in repository

You can organize your scripts in a repository. Simply place a script in folder /usr/local/share/n98-magerun/scripts orin your home dir in folder <HOME>/.n98-magerun/scripts.

Scripts must have the file extension .magerun.

After that you can list all scripts with the script:repo:list command. The first line of the script can contain a comment(line prefixed with #) which will be displayed as description.

$ n98-magerun.phar script:repo:list

Usage:

$ n98-magerun.phar script:repo:list

15.1.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

193

Page 200: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

194 Chapter 15. Script Commands

Page 201: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

15.2 script:repo:run

Run script from repository

Usage:

$ n98-magerun.phar script:repo:run [script]

15.2.1 Arguments

script

Is required: No

Is array: No

Description: Name of script in repository

Default: n/a

15.2.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

15.2. script:repo:run 195

Page 202: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

196 Chapter 15. Script Commands

Page 203: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

15.2. script:repo:run 197

Page 204: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

198 Chapter 15. Script Commands

Page 205: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 16

Standalone Commands

16.1 help

Displays help for a command

The <info>help</info> command displays help for a given command:

<info>php /home/cmuench/Workspaces/PHP/opensource/n98-magerun/bin/n98-magerunhelp list</info>

You can also output the help in other formats by using the <comment>–format</comment> option:

<info>php /home/cmuench/Workspaces/PHP/opensource/n98-magerun/bin/n98-magerunhelp –format=xml list</info>

To display the list of available commands, please use the <info>list</info> command.

Usage:

$ n98-magerun.phar help [--xml] [--format="..."] [--raw] [command_name]

16.1.1 Arguments

command_name

Is required: No

Is array: No

Description: The command name

Default: help

16.1.2 Options

–xml

Description: To output help as XML

Shortcut:

Accept value: No

Is value required: No

199

Page 206: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–format

Description: To output help in other formats

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–raw

Description: To output raw command help

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

200 Chapter 16. Standalone Commands

Page 207: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

16.1. help 201

Page 208: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

16.2 install

Install magento

• Download Magento by a list of git repos and zip files (mageplus, magelte, official community packages).

• Try to create database if it does not exist.

• Installs Magento sample data if available (since version 1.2.0).

• Starts Magento installer

• Sets rewrite base in .htaccess file

Example of an unattended Magento CE 1.7.0.2 installation:

$ n98-magerun.phar install –dbHost="localhost" –dbUser="mydbuser" –dbPass="mysecret"–dbName="magentodb" –installSampleData=yes –useDefaultConfigParams=yes –magentoVersionByName="magento-ce-1.7.0.2" –installationFolder="magento" –baseUrl="http://magento.localdomain/"

See it in action: http://youtu.be/WU-CbJ86eQc

Usage:

$ n98-magerun.phar install [--magentoVersion[="..."]] [--magentoVersionByName[="..."]] [--installationFolder[="..."]] [--dbHost[="..."]] [--dbUser[="..."]] [--dbPass[="..."]] [--dbName[="..."]] [--installSampleData[="..."]] [--useDefaultConfigParams[="..."]] [--baseUrl[="..."]] [--replaceHtaccessFile[="..."]]

16.2.1 Options

–magentoVersion

Description: Magento version

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–magentoVersionByName

Description: Magento version name instead of order number

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–installationFolder

202 Chapter 16. Standalone Commands

Page 209: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Installation folder

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–dbHost

Description: Database host

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–dbUser

Description: Database user

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–dbPass

Description: Database password

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–dbName

Description: Database name

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–installSampleData

16.2. install 203

Page 210: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Install sample data

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–useDefaultConfigParams

Description: Use default installation parameters defined in the yaml file

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–baseUrl

Description: Installation base url

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–replaceHtaccessFile

Description: Generate htaccess file (for non vhost environment)

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

204 Chapter 16. Standalone Commands

Page 211: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

16.2. install 205

Page 212: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

16.3 list

Lists commands

The <info>list</info> command lists all commands:

<info>php /home/cmuench/Workspaces/PHP/opensource/n98-magerun/bin/n98-magerunlist</info>

You can also display the commands for a specific namespace:

<info>php /home/cmuench/Workspaces/PHP/opensource/n98-magerun/bin/n98-magerunlist test</info>

You can also output the information in other formats by using the <comment>–format</comment> option:

<info>php /home/cmuench/Workspaces/PHP/opensource/n98-magerun/bin/n98-magerunlist –format=xml</info>

It's also possible to get raw list of commands (useful for embedding command runner):

<info>php /home/cmuench/Workspaces/PHP/opensource/n98-magerun/bin/n98-magerunlist –raw</info>

Usage:

$ n98-magerun.phar list [--xml] [--raw] [--format="..."] [namespace]

16.3.1 Arguments

namespace

Is required: No

Is array: No

Description: The namespace name

Default: n/a

206 Chapter 16. Standalone Commands

Page 213: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

16.3.2 Options

–xml

Description: To output list as XML

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–raw

Description: To output raw command list

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–format

Description: To output list in other formats

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

16.4 open-browser

Open current project in browser <comment>(experimental)</comment>

Usage:

$ n98-magerun.phar open-browser [store]

16.4.1 Arguments

store

Is required: No

Is array: No

Description: Store code or ID

Default: n/a

16.4. open-browser 207

Page 214: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

16.4.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

208 Chapter 16. Standalone Commands

Page 215: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

16.5 script

Runs multiple n98-magerun commands

Example:

# Set multiple config config:set "web/cookie/cookie_domain" example.com

# Set with multiline values with "

" config:set "general/store_information/address" "First line

Second line Third line"

# This is a comment cache:flush

Optionally you can work with unix pipes.

$ echo "cache:flush" | n98-magerun-dev script

$ n98-magerun.phar script < filename

16.5. script 209

Page 216: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

It is even possible to create executable scripts:

Create file test.magerun and make it executable (chmod +x test.magerun):

#!/usr/bin/env n98-magerun.phar script

config:set "web/cookie/cookie_domain" example.com cache:flush

# Run a shell script with "!" as first char ! ls -l

# Register your own variable (only key = value currently supported) ${my.var}=bar

# Let magerun ask for variable value - add a question mark ${my.var}=?

! echo ${my.var}

# Use resolved variables from n98-magerun in shell commands ! ls -l ${magento.root}/code/local

Pre-defined variables:

• ${magento.root} -> Magento Root-Folder

• ${magento.version} -> Magento Version i.e. 1.7.0.2

• ${magento.edition} -> Magento Edition -> Community or Enterprise

• ${magerun.version} -> Magerun version i.e. 1.66.0

• ${php.version} -> PHP Version

• ${script.file} -> Current script file path

• ${script.dir} -> Current script file dir

Variables can be passed to a script with "–define (-d)" option.

Example:

$ n98-magerun.phar script -d foo=bar filename

# This will register the variable ${foo} with value bar.

It's possible to define multiple values by passing more than one option.

Usage:

$ n98-magerun.phar script [-d|--define[="..."]] [filename]

16.5.1 Arguments

filename

Is required: No

Is array: No

Description: Script file

Default: n/a

16.5.2 Options

–define

Description: Defines a variable

210 Chapter 16. Standalone Commands

Page 217: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Shortcut: -d

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

16.5. script 211

Page 218: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

16.6 shell

Runs n98-magerun as shell

Usage:

$ n98-magerun.phar shell

212 Chapter 16. Standalone Commands

Page 219: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

16.6.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

16.6. shell 213

Page 220: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

16.7 uninstall

Uninstall magento (drops database and empties current folder

Please be careful: This removes all data from your installation.

Usage:

$ n98-magerun.phar uninstall [-f|--force]

16.7.1 Options

–force

Description: Force

Shortcut: -f

Accept value: No

Is value required: No

214 Chapter 16. Standalone Commands

Page 221: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

16.7. uninstall 215

Page 222: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

216 Chapter 16. Standalone Commands

Page 223: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 17

Sys Commands

17.1 sys:check

Checks Magento System

• Checks missing files and folders

• Security

• PHP Extensions (Required and Bytecode Cache)

• MySQL InnoDB Engine

Usage:

$ n98-magerun.phar sys:check

17.1.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

217

Page 224: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

218 Chapter 17. Sys Commands

Page 225: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

17.2 sys:cron:history

Last executed cronjobs with status.

Usage:

$ n98-magerun.phar sys:cron:history

17.2.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

17.2. sys:cron:history 219

Page 226: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

220 Chapter 17. Sys Commands

Page 227: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

17.3 sys:cron:list

Lists all cronjobs

Usage:

$ n98-magerun.phar sys:cron:list

17.3.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

17.3. sys:cron:list 221

Page 228: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

17.4 sys:cron:run

Runs a cronjob by job code

If no job argument is passed you can select a job from a list. See it in action:http://www.youtube.com/watch?v=QkzkLgrfNaM

Usage:

$ n98-magerun.phar sys:cron:run [job]

222 Chapter 17. Sys Commands

Page 229: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

17.4.1 Arguments

job

Is required: No

Is array: No

Description: Job code

Default: n/a

17.4.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

17.4. sys:cron:run 223

Page 230: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

17.5 sys:info

Prints infos about the current magento system.

Usage:

$ n98-magerun.phar sys:info

224 Chapter 17. Sys Commands

Page 231: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

17.5.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

17.5. sys:info 225

Page 232: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

17.6 sys:maintenance

Toggles maintenance mode.

Usage:

$ n98-magerun.phar sys:maintenance [--on] [--off]

17.6.1 Options

–on

Description: Force maintenance mode

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

226 Chapter 17. Sys Commands

Page 233: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–off

Description: Disable maintenance mode

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

17.6. sys:maintenance 227

Page 234: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

17.7 sys:setup:compare-versions

Compare module version with core_resource table.

Compares module version with saved setup version in core_resource table and displays version mismatch.

Usage:

228 Chapter 17. Sys Commands

Page 235: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

$ n98-magerun.phar sys:setup:compare-versions [--ignore-data]

17.7.1 Options

–ignore-data

Description: Ignore data updates

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

17.7. sys:setup:compare-versions 229

Page 236: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

17.8 sys:setup:run

Runs all new setup scripts.

Runs all setup scripts (no need to call frontend). This command is useful if you update your system with enabledmaintenance mode.

230 Chapter 17. Sys Commands

Page 237: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Usage:

$ n98-magerun.phar sys:setup:run

17.8.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

17.8. sys:setup:run 231

Page 238: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

17.9 sys:store:config:base-url:list

Lists all base urls

Usage:

$ n98-magerun.phar sys:store:config:base-url:list

17.9.1 Options

–help

Description: Display this help message.

Shortcut: -h

232 Chapter 17. Sys Commands

Page 239: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

17.9. sys:store:config:base-url:list 233

Page 240: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

17.10 sys:store:list

Lists all installed store-views

Usage:

$ n98-magerun.phar sys:store:list

17.10.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

234 Chapter 17. Sys Commands

Page 241: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

17.10. sys:store:list 235

Page 242: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

17.11 sys:url:list

Get all urls.

Examples:

• Create a list of product urls only:

$ n98-magerun.phar sys:url:list –add-products 4

• Create a list of all products, categories and cms pages of store 4 and 5 separating host and path (e.g. to feed ajmeter csv sampler):

$ n98-magerun.phar sys:url:list –add-all 4,5 '{host},{path}' >urls.csv

• The "linetemplate" can contain all parts "parse_url" return wrappedin '{}'. '{url}' always maps the complete url and is set by de-fault

Usage:

$ n98-magerun.phar sys:url:list [--add-categories] [--add-products] [--add-cmspages] [--add-all] [stores] [linetemplate]

17.11.1 Arguments

stores

Is required: No

Is array: No

Description: Stores (comma-separated list of store ids)

Default: n/a

linetemplate

Is required: No

Is array: No

236 Chapter 17. Sys Commands

Page 243: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Description: Line template

Default: {url}

17.11.2 Options

–add-categories

Description: Adds categories

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–add-products

Description: Adds products

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–add-cmspages

Description: Adds cms pages

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–add-all

Description: Adds categories, products and cms pages

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

17.11. sys:url:list 237

Page 244: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

238 Chapter 17. Sys Commands

Page 245: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

17.12 sys:website:list

Lists all websites

Usage:

$ n98-magerun.phar sys:website:list

17.12.1 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

17.12. sys:website:list 239

Page 246: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

240 Chapter 17. Sys Commands

Page 247: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is value required: No

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

17.12. sys:website:list 241

Page 248: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

242 Chapter 17. Sys Commands

Page 249: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 18

Uml Commands

18.1 uml:generate

Generate UML diagramm

Usage:

$ n98-magerun.phar uml:generate classname

18.1.1 Arguments

classname

Is required: Yes

Is array: No

Description: PHP class name

Default: n/a

18.1.2 Options

–help

Description: Display this help message.

Shortcut: -h

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–quiet

Description: Do not output any message.

Shortcut: -q

Accept value: No

Is value required: No

243

Page 250: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–verbose

Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3for debug

Shortcut: -v|-vv|-vvv

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–version

Description: Display this application version.

Shortcut: -V

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–ansi

Description: Force ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-ansi

Description: Disable ANSI output.

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

–no-interaction

Description: Do not ask any interactive question.

Shortcut: -n

Accept value: No

Is value required: No

244 Chapter 18. Uml Commands

Page 251: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

Is multiple: No

Default: n/a

–root-dir

Description: Force magento root dir. No auto detection

Shortcut:

Accept value: No

Is value required: No

Is multiple: No

Default: n/a

18.1. uml:generate 245

Page 252: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

246 Chapter 18. Uml Commands

Page 253: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 19

Copyrights

netz98 new media GmbH

[email protected]

Haifa Allee 2 55128 Mainz Germany

247

Page 254: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

248 Chapter 19. Copyrights

Page 255: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 20

Command Reference

• Standalone Commands

• Admin Commands

• Cache Commands

• Composer Commands

• Config Commands

• Customer Commands

• Db Commands

• Design Commands

• Dev Commands

• Extension Commands

• Index Commands

• Local-config Commands

• Script Commands

• Sys Commands

249

Page 256: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

n98-magerun Documentation, Release 1.0.0

250 Chapter 20. Command Reference

Page 257: Release 1.0.0 netz98 new media GmbH › pdf › n98-magerun › latest › n98-mage… · Contents 1 Overview 3 1.1 Compatibility. . . . . . . . . . . . . . . . . . . . . . . . .

CHAPTER 21

Indices and tables

• Welcome to n98-magerun documentation!

251