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.