Skip to content

Wizkunde/magerun-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

n98-magerun custom commands

These n98-magerun custom commands have been created to help my customers overcoming all kinds of store issues. If you have new commands that you use a lot, please fork, create a PR and make this library even more useful!

I will add new custom commands as i go as they are a REAL timesaver!

What is n98-magerun?

N98-magerun is a CLI package that adds a LOT of useful magento commands to the power of your command line. You can find the package here: https://github.com/netz98/n98-magerun

After you installed it in your path, you can download this in your magento root to add the commands to your magento installation.

Setup

Clone this repository and copy the lib folder recursively to your magento root. Thats all!

General information

Mode explanation

  • dry - Do not actually do anything, log as if you did.
  • test - Set 1 sku with the --sku command and run this command only for that specific SKU
  • live - Do all the magic of the command
  • rollback - Undo the major fuckup you just made (given the fact that you actually created the backup as suggested)

Extra credits

Inspired by Peter Jaap Blaakmeer from Elgentos his repository (https://github.com/peterjaap/magerun-addons), i built this one to provide me with similar functionalities and adding rollback support to the media part

Available custom commands

  • wizkunde:cache:warm - Warms the cache based on the Sitemap files generated in your installation
  • wizkunde:media:remove-duplicates - Removes all duplicate files from your media gallery
  • wizkunde:media:remove-orphans - Removes files that are in your filesystem but not in the database
  • wizkunde:media:remove-missing - Removes files that are in your database but not in your filesystem

wizkunde:cache:warm

Usage:
  wizkunde:cache:warm [options] [--] [<mode>]

Arguments:
  mode                       live, test or dry (default)

Options:
  -s, --sitemap=SITEMAP      Sitemap file path

wizkunde:media:remove-duplicates

Usage:
  wizkunde:media:remove-duplicates [options] [--] [<mode>]

Arguments:
  mode                       rollback, live, test or dry (default)

Options:
  -s, --sku=SKU              Sku for when in test mode

wizkunde:media:remove-orphans

Usage:
  wizkunde:media:remove-orphans [options] [--] [<mode>]

Arguments:
  mode                       rollback, live, dry (default)

Options:
  -s, --sku=SKU              Sku for when in test mode

wizkunde:media:remove-missing

Usage:
  wizkunde:media:remove-missing [options] [--] [<mode>]

Arguments:
  mode                       live, test or dry (default)

Options:
  -s, --sku=SKU              Sku for when in test mode

wizkunde:review:import-translations

Usage:
  wizkunde:review:import-translation [options] [--] [<mode>]

Arguments:
  mode                       test, live, dry (default)

Options:
  -s, --sku=SKU              Sku for when in test mode
  -f, --file=FILE            File to load from
  -S, --store=STORE          New store to use

Open a random excel file (XLSX or anything).
Save the tab that you want to import into a new excel file in XML format if there are multiple tabs.
The first row is ignored due to it being headers.
Check the image for a layout:

Schermafbeelding 2016-04-08 om 07.54.21.png

About

A selection of useful extra magerun commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages