Magento 2 Console Product List
Easy console module to show a product list on the console (with some filters available).
Module developed while researching capabilities of Magento 2, mainly as a test. Decided to push it to Github, can be used as an example module.
Require through Composer:
composer require stefandoorn/magento2-console-productlist
Then enable the module:
php bin/magento module:enable --clear-static-content StefanDoorn_ConsoleProductList
And perform the install command:
php bin/magento setup:upgrade
The commands below are available. Feel free to submit PRs to add additional features.
Shows product types available
Shows all products
- Include --active to only get active products
- Include to get only products of certain type (optional)
- Include --count to only get a count, instead of a list
- Example: php bin/magento products:list simple --active --count