Skip to content
cmuench edited this page Aug 15, 2012 · 19 revisions

Usage / Commands

All commands try to detect the current Magento root directory. If you have multiple magento installation you must change your working directory to the preferred installation.

Database Commands

Print database informations

n98-magerun.phar database:info

Dump database

Direct dump with mysqldump:

n98-magerun.phar database:dump

Only the mysqldump command:

n98-magerun.phar database:dump --only-command

Global Config Commands

Generate local.xml file

n98-magerun.phar local-config:generate

Dump global xml config

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

Cache Commands

List magento cache status

n98-magerun.phar cache:list

Clear magento cache

n98-magerun.phar cache:clear

Or only one cache type like i.e. full_page cache:

n98-magerun.phar cache:clear full_page

List magento caches

n98-magerun.phar cache:list

Disable magento cache

n98-magerun.phar cache:disable

Enable magento cache

n98-magerun.phar cache:enable

Admin Commands

List admin users

n98-magerun.phar admin:user:list

Change admin user password

n98-magerun.phar admin:user:change-password

System Commands

Toggle maintenance mode

n98-magerun.phar system:maintenance

Magento system infos

Provides infos like the edition and version or the configured cache backends.

n98-magerun.phar system:info

Magento modules

Lists all installed modules with codepool and version

n98-magerun.phar system:modules:list

Developer Commands

Toogle Template Hints

Toggle debug template hints settings of a store

n98-magerun.phar dev:template-hints <store_code>

Toogle Template Hints Blocks

Toggle debug template hints blocks settings of a store

n98-magerun.phar dev:template-hints-blocks <store_code>

Toggle Inline Translation

Toggle settings for shop frontend:

n98-magerun.phar dev:translate:shop <store_code>

Toggle for admin area:

n98-magerun.phar dev:translate:admin

Toggle Profiler

Toggle profiler for debugging a store:

n98-magerun.phar dev:profiler <store_code>

Toggle Symlinks

Allow usage of symlinks for a store-view:

n98-magerun.phar dev:symlinks <store_code>

Global scope can be set by not permitting store_code parameter:

n98-magerun.phar dev:symlinks
Clone this wiki locally