Skip to content

WP-CLI Commands

wp dixa anonymize

Anonymizes a customer in Dixa by email.

wp dixa anonymize --email=customer@example.com

Sends an anonymization request to the Dixa API. Outputs the API response on success, or an error message on failure.


wp dixa users export

Exports pending WooCommerce customers (not yet synced) to Dixa in batches of 10.

wp dixa users export [--limit=<n>]
Option Default Description
--limit 10 Maximum number of users to fetch

Customers are processed in chunks of 10 with a 1.5-second throttle between batches. If a conflict occurs (EmailExists / PhoneNumberExists), the command falls back to a PATCH on the existing Dixa End User. Successfully synced customers are flagged with the exported_to_dixa user meta key.


wp dixa users export_unflag_all

Removes the exported_to_dixa flag from all customers, allowing them to be re-exported.

wp dixa users export_unflag_all