Advanced Reports
v1.6.3

Command Line Interface

Usage: php -f bin/magento [options]

  • mirasvit:report:export [options] - 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].

    • Main options:

      • --identifier order_plain - export report with the identifier order_plain. This option is required.
      • --type csv - export the report as a CSV file. The allowed file types are - csv, xml. This option is required.
      • --interval last30Days - export the report for the last 30 days. This parameter is optional. If omitted, the lifetime report will be generated. With the custom interval code, you can specify the custom interval for a report using additional options:

        • --from - start date of the report. If omitted, the extension will use the earliest date.
        • --to - end date of the report. If omitted, the extension will use current date.

        Values for both options should be in the next format - YYYY-MM-dd (for example, 2020-02-10). If both options are omitted, the lifetime report will be generated.

    • Additional (informational) options:
      • --report-list - the list of all available reports (identifier - report name).
      • --interval-list - the list of all available date intervals (code - description).