ruchlewicz/magento2-console-command

Magento 2 sample console command for getting product info

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:magento2-module

pkg:composer/ruchlewicz/magento2-console-command

1.0.3 2018-08-23 17:42 UTC

This package is not auto-updated.

Last update: 2026-01-18 12:49:45 UTC


README

Magento2 sample console command for getting product info

Installation

via composer

Run the following command in Magento 2 root folder:

composer require ruchlewicz/magento2-console-command
php bin/magento setup:upgrade

manual

Download the repository and put the code into

app/code/Ruchlewicz/ConsoleCommand

Usage

Open console and run following command

php bin/magento ruchlewicz:product-info <product-id> -a <attribute-code>
  • product-id - id of the product you want to check
  • attribute-code(optional) - attribute code that you want to check, if not provided then all attributes will be displayed