-
Notifications
You must be signed in to change notification settings - Fork 0
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.
n98-magerun.phar database:info
The command output looks like this:
host : localhost username : root password : mypassword dbname : mydatabase initStatements : SET NAMES utf8 model : mysql4 type : pdo_mysql pdoType : active : 1 PDO-Connection-String : mysql:host=localhost;dbname=mydatabase JDBC-Connection-String : jdbc:mysql://localhost/mydatabase?username=root&password=mypassword
Direct dump with mysqldump:
n98-magerun.phar database:dump
The command will ask for the dump filename.
Only the mysqldump command:
n98-magerun.phar database:dump --only-command
n98-magerun.phar local-config:generate
n98-magerun.phar config:dump > extern_file.xml
n98-magerun.phar cache:list
n98-magerun.phar cache:clear
Or only one cache type like i.e. full_page cache:
n98-magerun.phar cache:clear full_page
n98-magerun.phar cache:list
n98-magerun.phar cache:disable
n98-magerun.phar cache:enable
n98-magerun.phar admin:user:list
n98-magerun.phar admin:user:change-password
n98-magerun.phar system:maintenance
Provides infos like the edition and version or the configured cache backends.
n98-magerun.phar system:info
Lists all installed modules with codepool and version
n98-magerun.phar system:modules:list
Toggle debug template hints settings of a store
n98-magerun.phar dev:template-hints <store_code>
Toggle debug template hints blocks settings of a store
n98-magerun.phar dev:template-hints-blocks <store_code>
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 for debugging a store:
n98-magerun.phar dev:profiler <store_code>
This command is useful if you work with a tool like modman which requires allowed 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