Skip to content

Instantly share code, notes, and snippets.

@michaelcoleweb
michaelcoleweb / ProductCommand.php
Last active February 19, 2017 18:37
Magento 2 Command Line Sample
<?php
namespace MCW\SampleCommands\Console\Command;
use Magento\Catalog\Api\ProductRepositoryInterface;
use Magento\Catalog\Model\Product;
use Magento\Framework\Exception\NoSuchEntityException;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;