Skip to content

Instantly share code, notes, and snippets.

@GideonBabu
Created August 7, 2018 07:40
Show Gist options
  • Save GideonBabu/03a613e8fa5d8224832e83500b06fdba to your computer and use it in GitHub Desktop.
Save GideonBabu/03a613e8fa5d8224832e83500b06fdba to your computer and use it in GitHub Desktop.
Magento 2 Commands Shortcuts
php bin/magento s:up - Setup Upgrade
php bin/magento s:up --keep-generated
php bin/magento c:c - Cache Flush
php bin/magento c:f - Cache Flush
php bin/magento c:d - Disable Cache
php bin/magento c:e - Enable Cache
php bin/magento i:rei - Reindexing
php bin/magento i:i - View the list of indexers
php bin/magento i:st - Indexer status
php bin/magento i:res - Indexer Resets
php bin/magento i:sh - Show the mode of all indexers
php bin/magento s:s:d - Static Content Deploy
php bin/magento s:s:d en_US - Static Content Deploy For Particular Language
php bin/magento s:s:d --theme="Magento/backend" - Static Content Deploy For Magento Backend theme
php bin/magento s:s:d --theme Magento/luma --theme Magento/second_theme - Static Content Deploy For Specific Themes
php bin/magento s:s:d en_US --exclude-theme Magento/luma --no-html-minify - Exclude Themes on Static Content Deploy and does not minify HTML
php bin/magento s:d:c - Di Compile
php bin/magento mo:s - See all modules Status
php bin/magento mo:e Namespace_Module - Enable module
php bin/magento mo:d Namespace_Module - Disable module
php bin/magento mo:u Namespace_Module - Uninstall Module
php bin/magento d:m:sh - Check Current Mode
php bin/magento d:m:se developer - Change To Developer Mode
php bin/magento d:m:se production - Change To Production Mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment