Shell scripts for Magento local development improvement.
- Clone the project.
git clone {{url}}
- Add
alias
to terminal profile (~/.bash_profile
or~/.zshrc
)
Example:
alias magefull="sh /path/to/magento-scripts/fulldevdeploy.sh"
alias magelight="sh /path/to/magento-scripts/lightdevdeploy.sh"
alias magestatic="sh /path/to/magento-scripts/deploystatic.sh"
alias magegenerate="sh /path/to/magento-scripts/generatestatics.sh"
- Run
alias
from Magento/Adobe Commerce root folder
Example:
$ magegenerate
- Copy & paste
test_m2.php
file to Magento/Adobe Commerce root folder
$ cp /path/to/magento-scripts/test_m2.php /path/to/magento
-
Modify
test_m2.php
file to load your custom models and run methods -
Run
test_m2.php
file in CLI
$ php test_m2.php