Indexing

CLI - Quick Reference

10min

Summary of Klevu Indexing CLI Commands

Attribute Discovery

klevu:indexing:attribute-discovery

The discovery can also be triggered via CLI and has 2 optional parameters

  • api-keys - [optional] comma-separated list of API keys to run discovery for
  • attribute-types - [optional] comma-separated list of attribute types to run discovery for, options:
    • KLEVU_PRODUCT
    • KELVU_CATEGORY
Shell


Attribute Update

klevu:indexing:attribute-update

The update can be triggered via CLI and has 1 required parameter and 2 optional parameters

  • attribute-ids - comma-separated list of attribute IDs to update
  • api-keys - [optional] comma-separated list of API keys to update
  • attribute-types - [optional] comma-separated list of attribute types to update, options:
    • KLEVU_PRODUCT
    • KELVU_CATEGORY
Shell


Attribute Sync

klevu:indexing:attribute-sync

The sync can be triggered via CLI and has 2 optional parameters

  • api-keys - [optional] comma-separated list of API keys to sync
  • attribute-types - [optional] comma-separated list of attribute types to sync, options:
    • KLEVU_PRODUCT
    • KELVU_CATEGORY

Increasing the verbosity of the command will give you more information using -v, -vv, or -vvv

Shell



Entity Discovery

klevu:indexing:entity-discovery

The discovery can be triggered via CLI and has 2 optional parameters

  • api-keys - [optional] comma-separated list of API keys to run discovery for
  • entity-types - [optional] comma-separated list of entity types to run discovery for, options:
    • KLEVU_PRODUCT
    • KELVU_CATEGORY
    • KLEVU_CMS
Shell


Entity Update

klevu:indexing:entity-update

The update can be triggered via CLI and has 1 required parameter and 2 optional parameters

  • entity-ids - a comma-separated list of entity IDs to update
  • api-keys - [optional] comma-separated list of API keys to update
  • entity-types - [optional] comma-separated list of entity types to update, options:
    • KLEVU_PRODUCT
    • KELVU_CATEGORY
Shell


Entity Sync

klevu:indexing:entity-sync

The sync can be triggered via CLI and has 2 optional parameters

  • api-keys - [optional] comma-separated list of API keys to update
  • entity-types - [optional] comma-separated list of entity types to sync, options:
    • KLEVU_PRODUCT
    • KELVU_CATEGORY
    • KLEVU_CMS

Increasing the verbosity of the command will give you more information using -v, -vv, or -vvv

Shell