Skip to content

Instantly share code, notes, and snippets.

@Nolwennig
Created July 24, 2024 13:46
Show Gist options
  • Save Nolwennig/7a7d51b3e27010388c01bb2e62f69249 to your computer and use it in GitHub Desktop.
Save Nolwennig/7a7d51b3e27010388c01bb2e62f69249 to your computer and use it in GitHub Desktop.
Magento 2 system management shortcuts
# Perso
alias bashrc="nano ~/.bashrc && source ~/.bashrc"
# Magerun2
alias magerun2="php /var/www/docroot/bin/n98-magerun2.phar"
alias m2="magerun2"
alias msu="m2 setup:upgrade"
alias mdi="m2 setup:di:compile"
alias mstatic="m2 setup:static-content:deploy -f"
alias mcclean="m2 cache:clean"
alias mcflush="m2 cache:flush"
alias mcon="m2 cache:enable"
alias mcoff="m2 cache:disable"
alias mconfigset="m2 config:set"
alias mconfigshow="m2 config:show"
alias mrefresh="msu && mdi && mstatic"
alias mreindex="m2 indexer:reindex"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment