Skip to main content

Command line interface

This page contains console commands used when operating with the Product Label extension.

Base command

php -f bin/magento mirasvit:label:indexer 

Base command of the extension. This command requires one of the following options.

OptionDescription
--statusdisplays information about Product Label index
--reindex-allrun full reindex of Product Label index
--reindex-newrun reindex of Product Label index for recently created/updated products

Emulate cron

php -f bin/magento mirasvit:label:emulate:cron

Manually runs the extension's cron job instead of waiting for its scheduled execution. Use this to immediately apply label changes without waiting for the periodic cron run mentioned in Labels.