stefandoorn/magento2-console-productlist

This package is abandoned and no longer maintained. No replacement package was suggested.

Magento 2 Console Product List

1.0.2 2015-12-28 19:21 UTC

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