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

by Tom J Nowell, Code For The People · github.com/cftp/wpcli-serialised-options

2stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/cftp/wpcli-serialised-options/archive/refs/heads/master.zip

Readme

WP CLI Serialised Options

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"

Read the full README on GitHub →