Plugin CLI Commands

You can use WP-CLI to interact with the Optimole WordPress plugin:

Here are the commands available and the description for them:

Connect the Plugin
wp optimole connect <api_key>

Use this command to connect the plugin with an API key.

Disconnect the Plugin
wp optimole disconnect

Use this command to disconnect the plugin if required.

Update Settings
wp optimole update <setting_name> <value>

Use this command to update a setting from the CLI.  Available settings and accepted value types:

image_replacer		=> bool
quality			=> int
lazyload		=> bool
lazyload_placeholder	=> bool

Eg. wp optimole update image_replacer false

Get Settings Value
wp optimole get <setting_name>

This command returns the current setting value the same setting_name apply.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us