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' =&gt;
  array (
    'runtime' =&gt; '=&lt;path&gt;',
    'file' =&gt; '&lt;path&gt;',
    'synopsis' =&gt; '',
    'default' =&gt; NULL,
    'multiple' =&gt; false,
    'desc' =&gt; 'Path to the WordPress files.',
  ),
  'url' =&gt;
  array (