stefandoorn / magento2-console-productlist
Magento 2 Console Product List
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 2
Open Issues: 0
Type:magento2-module
Requires
- php: ~5.5.0|~5.6.0|~7.0.0
- magento/framework: 100.0.*
- magento/module-catalog: ~100.0
This package is auto-updated.
Last update: 2022-02-01 12:54:15 UTC
README
Easy console module to show a product list on the console (with some filters available).
Background
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.
Installation
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
Commands
The commands below are available. Feel free to submit PRs to add additional features.
products:types
Shows product types available
products:list [--active] [--count]
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