This module show how to simply add custom cli command to magento 2
- Magento 2.1.x - 2.2.x
- Run
composer require wokisajn/magento2-command-example - Run
php bin/magento module:enable Training_Activities - Run
bin/magento setup:upgrade - Run
bin/magento clean:cache
- In root directory type 'php bin/magento training:show_effect'
- Run
composer remove wokisajn/magento2-command-example