WP-CLI

A command line interface for WordPress

Commands » cli » param-dump

wp cli param-dump - Dump the list of global parameters, as JSON or in var_export format.

Quick links: Github issues


OPTIONS

[--with-values]
Display current values also.
[--format=<format>]
Render output in a particular format. -– default: json options:
  • var_export
  • json -–

EXAMPLES

# Dump the list of global parameters.
$ wp cli param-dump --format=var_export
array (
  'path' =>
  array (
    'runtime' => '=&lt;path&gt;',
    'file' => '&lt;path&gt;',
    'synopsis' => '',
    'default' => NULL,
    'multiple' => false,
    'desc' => 'Path to the WordPress files.',
  ),
  'url' =>
  array (