wp config <command>

The config command generates and displays information about the wp-config.php file.


Name Description
wp config create

Generate a wp-config.php file.

wp config get

Get variables, constants, and file includes defined in wp-config.php file.

wp config path

Get the path to wp-config.php file.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.