Skip to content

Instantly share code, notes, and snippets.

@tunght13488
Forked from hiephm/Magento 2 aliases
Created April 20, 2016 07:30
Show Gist options
  • Save tunght13488/9b8035dd26bf07545ca270b00f9e4ab7 to your computer and use it in GitHub Desktop.
Save tunght13488/9b8035dd26bf07545ca270b00f9e4ab7 to your computer and use it in GitHub Desktop.
## Magento 2
alias m2="bin/magento"
alias m2rmgen="find var/generation -maxdepth 1 -mindepth 1 -type d -not -name 'Magento' -not -name 'Composer' -not -name 'Symfony' -exec rm -rf {} \;"
alias m2en="m2 module:enable"
alias m2s="m2 module:status"
alias m2f="m2 cache:flush"
alias m2up="m2en --all && m2 setup:upgrade && m2rmgen && m2f"
alias m2static="rm -rf var/view_preprocessed/* && rm -rf pub/static/frontend/* && rm -rf pub/static/_requirejs/frontend/*"
alias m2perm="sudo find . -type d -exec chmod 775 {} \; && sudo find . -type f -exec chmod 664 {} \; && sudo chmod u+x bin/magento"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment