Skip to content

n98-magerun2

n98-magerun2 is a command-line toolkit for Magento 2 that provides a collection of useful utilities beyond what bin/magento offers. It is pre-installed in the PHP container.

Usage

bash
n98-magerun2 list

Common Commands

CommandDescription
n98-magerun2 db:consoleOpen an interactive database shell
n98-magerun2 db:dumpCreate a database dump
n98-magerun2 db:importImport a database dump
n98-magerun2 cache:flushFlush all caches
n98-magerun2 admin:user:listList admin users
n98-magerun2 sys:infoDisplay system information

For a full list of commands, see the n98-magerun2 documentation.