Skip to main content

Command line interface

Export reports

bin/magento mirasvit:report:export [options]

The command to export report. The extension will generate a file with the report under the [root_store_path]/var/export folder.
The name of the file with the report will have the following format: report_[identifier]_[interval]_[export-date]_[export-time].[type].

OptionDescription
--identifier order_plainexport report with the identifier order_plain. This option is required.
--type csvexport the report as a CSV file. The allowed file types are - csv, xml. This option is required.
--interval last30Daysexport the report for the last 30 days. This parameter is optional. If omitted, the lifetime report will be generated.
--fromoption to specify the custom interval. This is the start date of the report. If omitted, the extension will use the earliest date. Values should be in the next format - YYYY-MM-dd (for example, 2020-02-10).
--tooption to specify the custom interval. This is the end date of the report. If omitted, the extension will use current date. Values should be in the next format - YYYY-MM-dd (for example, 2020-02-10).
--report-listthe list of all available reports (identifier - report name).
--interval-listthe list of all available date intervals (code - description).

Send email notifications

bin/magento mirasvit:report:cron

Run cron to manully send email notifications.

Show tables relations

bin/magento mirasvit:report:info

Display existing relations between tables.

Update geo-data

bin/magento mirasvit:reports:cron

Run cron to update geo-data manually.