Skip to content
Verdant Studio logo

WP CLI

You can leverage WP-CLI to initiate a synchronization event. This capability allows you to customize synchronization intervals beyond default options, or prompt synchronization whenever you’ve made updates to your site.

Please note: this requires you to have WP-CLI available on your project or installed globally.

Synchronise data with the WP-CLI

Example usage single site

You can trigger the synchronisation event on a website which is already setup to synchronise to a monitor via:

wp cron event run wpsm_push_event

Example usage with multisites

Using a multisite? You can use the URL parameter to specify which site the request originated from:

wp cron event run wpsm_push_event --url=<url>