Mage is a simple tool built on top of bin/magento
to enhance your Magento 2 development experience. It provides shortcuts and custom functions to save you time and effort.
bin/magento
commands, saving you keystrokes.reindex
and purge
for specific tasks.mage open
.watch
command automates cache cleaning on file changes, improving your workflow.Download the script:
wget https://raw.githubusercontent.com/GrimLink/mage/main/mage && chmod +x mage
Alternatively, use curl:
curl -O https://raw.githubusercontent.com/GrimLink/mage/main/mage && chmod +x mage
For a complete list, run mage help
. Here are some highlights:
mage open [storeview]
: Open your default store or a specific store based on the storeview
name. You can also use admin
instead of storeview
, to open the admin panel.mage watch
: This alias for mage2tv Cache Clean monitors for Magento 2 file changes and clears only the affected cache, streamlining development.mage purge
: This command clears all static generated files and caches, useful for troubleshooting or forcing a hard reload.Note:
mage run
requires the n98-magerun2 moduleset theme
and set hyva
requires the Yireo_ThemeCommands moduleset baldr
requires the Siteation Baldr ThemeMage works without additional configuration on:
We welcome contributions to Mage! Fork the repository, make your changes, and submit a pull request.
Mage is licensed under the MIT License. See the LICENSE file for details.