🐇 Short codes save time & speed up development
# 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
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
🐢 Longer form, use this when writing scripts
# Typing bin/magento and the long command in local dev environments is a big
# time suck during development. However, this form should still be used when
# writing scripts (deployments, automations, etc.) for compatibility reasons.
bin/magento
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
Visit M.academy to learn much more about Magento, Laravel, PHP, Javascript, & Docker.