wp post meta list

List all metadata associated with an object.

wp post meta list <id> [--keys=<keys>] [--fields=<fields>] [--format=<format>] [--orderby=<fields>] [--order=<order>] [--unserialize]

Options

<id>

ID for the object.

[--keys=<keys>]

Limit output to metadata of specific keys.

[--fields=<fields>]

Limit the output to specific row fields. Defaults to id,meta_key,meta_value.

[--format=<format>]

Render output in a particular format. [Default: table]

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

[--orderby=<fields>]

Set orderby which field. [Default: id]

Options:
  • id
  • meta_key
  • meta_value

[--order=<order>]

Set ascending or descending order. [Default: asc]

Options:
  • asc
  • desc

[--unserialize]

Unserialize meta_value output.