Faster than opening phpMyAdmin when you need to check or debug a specific wp_options value.
Usage:
- Replace the option name with whatever you’re looking for.
- The
--searchflag accepts*wildcards – useful when you don’t know the exact option name a plugin uses. - Use
wp option updatecarefully – some options are serialized and should only be changed viawp search-replace
# Get any option by name
wp option get siteurl
wp option get blogname
wp option get admin_email
# Get a serialized option and have WP-CLI format it readably
wp option get active_plugins --format=json
# Search for options matching a pattern (useful for plugin options)
wp option list --search="*woocommerce*" --fields=option_name,option_value
# Update an option directly
wp option update blogname "My New Site Name"
Tested on
WordPress 7.1
Reported by the author on October 7, 2026. WPFolks has not verified this.