Skip to main content

Command Line Interface

Below are the available commands for the eChat module.

Command to sync store data

bin/magento mirasvit:echat:sync

The command syncs your store data (store information, products, categories, CMS pages and Mirasvit Knowledge Base articles) to the eChat cloud knowledge base. The chatbot uses this data to provide accurate answers to customer questions.

OptionDescription
--typeSync only one data source. Built-in values: store_info, product, category, cms_page, kb_article, plus the identifier of any custom data source. If omitted, all sources are synced.
--storeSync only the given store view, by code. If omitted, every store view with the chatbot enabled is synced.
--dry-runList what each source would send, without contacting the knowledge base. Nothing is created or updated.
--limitStop after this many documents per source. Useful together with --dry-run on a large catalog. 0 (the default) means no limit.
Examples
  • Sync all data types:

    bin/magento mirasvit:echat:sync
  • Sync only products:

    bin/magento mirasvit:echat:sync --type=product
  • Sync only CMS pages:

    bin/magento mirasvit:echat:sync --type=cms_page
  • Preview the first five products of one store view without sending anything:

    bin/magento mirasvit:echat:sync --store=default --type=product --dry-run --limit=5