Skip to main content

Command Line Interface

Below are the available commands for the Advanced Reviews module.

Aggregated commands

php -f bin/magento mirasvit:review:aggregate

The command allows generating aggregated reviews (AI-powered).

OptionDescription
--product [product_id]specify the ID of the product for which aggregated reviews should be generated. If omitted, the extension will generate aggregated reviews for all reviewed products.

Generated commands

php -f bin/magento mirasvit:review:generate

The command allows generating reviews using OpenAI.

OptionDescription
--nickname [nickname]the nickname of the reviewer. This option is required.
--rating [rating]rating from 1 to 5. This option is required.
--product [product_id]the ID of the product for which the review should be generated. If omitted, the extension will generate reviews for all products.
--store [store_id]specify the store view for which the review should be generated.
--additional [text]add additional instructions for OpenAI. These instructions will be included in the prompt for reviews generation.
--qty [number]the limit of reviews to generate in one execution.
--autoapprovedefine whether generated reviews should be automatically marked as approved.

Reindexing commands

php -f bin/magento mirasvit:review:reindex

The command allows reindexing of reviews, locations, and verified buyer data. If no options are specified, the extension will reindex all three.

OptionDescription
--verifyreindex verified buyer data only.
--locationreindex reviewers' location data.
--forceforce reindex affects only the verified buyer data reindex. It should be used after changing the Store Statuses setting of the extension.

Cron commands

php -f bin/magento mirasvit:review:cron

Manually runs the extension's cron jobs (review reminders, AI aggregation, etc.) instead of waiting for the next scheduled run.

OptionDescription
--code [job_code]run only the cron job with this code. If omitted, all of the extension's cron jobs are run.
--listprint the list of available cron job codes and exit.

Notify pending review

php -f bin/magento mirasvit:review:notify --id [review_id]

Manually sends the pending-review admin notification email for a single review (the same email normally triggered when a new review awaits moderation).

OptionDescription
--id [review_id]the ID of the review to send the notification for. This option is required.

Review tags commands

Manage AI-assigned review tags from the command line.

php -f bin/magento mirasvit:review:tag:revalidate [tag] [options]

Re-evaluates a single automatic tag's criteria against existing reviews.

Argument / OptionDescription
tagthe ID of the tag to revalidate. This argument is required.
--batch-size, -b [number]number of reviews to process per batch. Defaults to 50.
--dry-runreport what would change without writing anything.
php -f bin/magento mirasvit:review:tag:rebuild [options]

Re-derives all AI auto-tag assignments across every automatic tag. Manually-assigned tags are left untouched.

OptionDescription
--store, -s [store_id]restrict the rebuild to a single store view.
--batch-size, -b [number]number of reviews to process per batch. Defaults to 50.
--dry-runreport what would change without writing anything.
php -f bin/magento mirasvit:review:tag:clear [tag]

Removes all review assignments for a single tag (the tag itself is not deleted).

ArgumentDescription
tagthe ID of the tag to clear. This argument is required.