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).
| Option | Description | 
|---|---|
| --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.
| Option | Description | 
|---|---|
| --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. | 
| --autoapprove | define 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.
| Option | Description | 
|---|---|
| --verify | reindex verified buyer data only. | 
| --location | reindex reviewers' location data. | 
| --force | force reindex affects only the verified buyer data reindex. It should be used after changing the Store Statuses setting of the extension. |