Magento 2
Stop Typing So Much! bin/magento Edition
Free Preview
🟢 Good code
# Setup bash aliases for bin/magento to save a ton of time.

# Alias bin/magento to m.
echo "alias m=bin/magento" >> ~/.bash_profile

# Then reload your bash prompt to make it active.
source ~/.bash_profile

# You can now just type "m" to save time every day.
m c:f
m s:up
m s:d:c
m s:s:d
m mo:s
m mo:e Foo_Bar
m mo:d Foo_Bar
m i:rei
m d:m:sh
m d:m:se
m a:c:i
🔴 Bad code
# Typing bin/magento in local development environments, as well as the full
# command, is one of the biggest time sucks for developers.
bin/magento cache:flush
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
bin/magento module:status
bin/magento module:enable Foo_Bar
bin/magento module:disable Foo_Bar
bin/magento indexer:reindex
bin/magento deploy:mode:show
bin/magento deploy:mode:set
bin/magento app:config:import
Want to learn more?

Visit to learn much more about Magento, Laravel, PHP, Javascript, & Docker. logo