Skip to content

Instantly share code, notes, and snippets.

@amenk
Last active August 7, 2019 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amenk/b456c612372e6ee09e3b54aebf6f7def to your computer and use it in GitHub Desktop.
Save amenk/b456c612372e6ee09e3b54aebf6f7def to your computer and use it in GitHub Desktop.
Magento 2 n98-magerun2 dev:console snippets
// Startup: n98-magerun2 dev:console
// Dump a product's data by SKU
$sku = "thisIsTheSKU"; $di->get('Magento\Catalog\Model\ProductRepository')->get($sku)->debug();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment