Skip to content

hermes-garcia/magento-scripts

Repository files navigation

Magento Scripts

Shell scripts for Magento local development improvement.

⚙️ Installation

  1. Clone the project.
git clone {{url}}
  1. 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"

🌟 Usage

SH scripts

  1. Run alias from Magento/Adobe Commerce root folder

Example:

$ magegenerate 

PHP Script

  1. Copy & paste test_m2.php file to Magento/Adobe Commerce root folder
$ cp /path/to/magento-scripts/test_m2.php /path/to/magento
  1. Modify test_m2.php file to load your custom models and run methods

  2. Run test_m2.php file in CLI

$ php test_m2.php

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published