Scriptable recompute commands for deployments, migrations, and managing multiple sites.
Pro+WP-CLI automation is a Pro+ feature.
The command
wp arp recompute [--post_id=<id>] [--embeddings-only] [--relatedness-only] [--yes]
Flags
--post_id— limit the recompute to a single post. Without it, the command runs across your whole site.--embeddings-only— only regenerate the AI semantic-matching signal, skipping the related-list recalculation.--relatedness-only— only recompute the related list, skipping AI embedding generation.--yes— skip the confirmation prompt, for use in non-interactive scripts and CI pipelines.
Typical uses
- After a bulk import. Imported posts don’t go through the normal save flow the same way a manual edit does — running a full recompute afterward ensures every imported post gets an embedding and a related list without needing to open and re-save each one.
- After a fresh install with existing content. Rather than waiting for the background sweep to reach your entire archive on its own schedule, trigger it directly as part of your deployment or setup script.
- Scheduled maintenance via real cron. If you’d rather rely on your server’s own cron instead of WordPress’s background job mechanism for a specific site, this command is scriptable exactly for that.
Exporting and importing settings across sites
Also a Pro+ feature: the Settings screen supports exporting your full configuration (matching weights, Customizer styling, placement rules) and importing it on another site — useful for an agency rolling out the same setup across several client sites without reconfiguring each one by hand.
Uwawp