Useful Magento 2 SSH Commands

  • May 19, 2016
  • Magento 2
  • Comments Off on Useful Magento 2 SSH Commands
Magento 2 SSH Commands

Run these useful Magento 2 SSH commands from a command prompt in the root Magento 2 installation folder.

php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex

Disable a specific Module
php bin/magento module:disable MODULE_NAME

Ensures DB scheme and module dependencies are in sync. This needs to be ran after module:enable / module:disable is ran.
php bin/magento setup:upgrade

Displays the current mode, developer or production. Ensure you are using developer mode when working locally.
php bin/magento deploy:mode:show

php bin/magento list
php bin/magento setup:static-content:deploy

Create a new user with the administrator roles
php bin/magento admin:user:create --admin-user="USERNAME" --admin-password="PASSWORD" --admin-email="EMAIL" --admin-firstname="FIRSTNAME" --admin-lastname="LASTNAME"

0 Comment