wp site option list

Lists site options.

wp site option list [--search=<pattern>] [--site_id=<id>] [--field=<field>] [--fields=<fields>] [--format=<format>]

Options

[--search=<pattern>]

Use wildcards ( * and ? ) to match option name.

[--site_id=<id>]

Limit options to those of a particular site id.

[--field=<field>]

Prints the value of a single field.

[--fields=<fields>]

Limit the output to specific object fields.

[--format=<format>]

The serialization format for the value. total_bytes displays the total size of matching options in bytes. [Default: table]

Options:
  • table
  • json
  • csv
  • count
  • yaml
  • total_bytes

Available Options

This field will be displayed by default for each matching option:

  • meta_key
  • meta_value

These fields are optionally available:

  • meta_id
  • site_id
  • size_bytes

Examples

# List all site options beginning with "i2f_" $ wp site option list --search="i2f_*" +-------------+--------------+ | meta_key | meta_value | +-------------+--------------+ | i2f_version | 0.1.0 | +-------------+--------------+