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!
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.
Clone this repository and copy the lib folder recursively to your magento root. Thats all!
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)
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
- 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
Usage:
wizkunde:cache:warm [options] [--] [<mode>]
Arguments:
mode live, test or dry (default)
Options:
-s, --sitemap=SITEMAP Sitemap file path
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
Usage:
wizkunde:media:remove-orphans [options] [--] [<mode>]
Arguments:
mode rollback, live, dry (default)
Options:
-s, --sku=SKU Sku for when in test mode
Usage:
wizkunde:media:remove-missing [options] [--] [<mode>]
Arguments:
mode live, test or dry (default)
Options:
-s, --sku=SKU Sku for when in test mode
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: