WP Manifestindependent plugin directory
manifest / developer / wpcli-serialised-options

WP CLI Serialised Options

wp get option xyz could return the string 'array', which is great if you're a human, awful if you're a bash script

★ 2stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/cftp/wpcli-serialised-options/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

wp option get xyz may return the string 'array' if it's a PHP array serialised. This is great for humans, but awful for automation. This plugin provides a way of getting and setting option values, serialised and base64 encoded to prevent corruption. This plugin is intended for bash script automation not human readable values.

Usage

data=$(wp serialised_option export --option="twp")

wp serialised_option import --option="twp" --value="$data"