Aller au contenu

wp config

Aide:

$ wp help config
NAME

  wp config

DESCRIPTION

  Generates and reads the wp-config.php file.

SYNOPSIS

  wp config <command>

SUBCOMMANDS

  create             Generates a wp-config.php file.
  delete             Deletes a specific constant or variable from the wp-config.php file.
  edit               Launches system editor to edit the wp-config.php file.
  get                Gets the value of a specific constant or variable defined in wp-config.php file.
  has                Checks whether a specific constant or variable exists in the wp-config.php file.
  list               Lists variables, constants, and file includes defined in wp-config.php file.
  path               Gets the path to wp-config.php file.
  set                Sets the value of a specific constant or variable defined in wp-config.php file.
  shuffle-salts      Refreshes the salts defined in the wp-config.php file.

Liste des variables et constantes du fichier config.php:

$ wp config list
+-------------------+------------------------------------------------------------------+----------+
| name              | value                                                            | type     |
+-------------------+------------------------------------------------------------------+----------+
| table_prefix      | wp_                                                              | variable |
| WP_CACHE          | 1                                                                | constant |
| WPCACHEHOME       | /Users/bruno/Sites/wordpress/wp-content/plugins/wp-super-cache/  | constant |
| DB_NAME           | wordpress4                                                       | constant |
| DB_USER           | xxx                                                              | constant |
| DB_PASSWORD       | yyy                                                              | constant |
| DB_HOST           | localhost                                                        | constant |
| DB_CHARSET        | utf8mb4                                                          | constant |
| DB_COLLATE        |                                                                  | constant |
| AUTH_KEY          | ---------------------------------------------------------------- | constant |
| SECURE_AUTH_KEY   | ---------------------------------------------------------------- | constant |
| LOGGED_IN_KEY     | ---------------------------------------------------------------- | constant |
| NONCE_KEY         | ---------------------------------------------------------------- | constant |
| AUTH_SALT         | ---------------------------------------------------------------- | constant |
| SECURE_AUTH_SALT  | ---------------------------------------------------------------- | constant |
| LOGGED_IN_SALT    | ---------------------------------------------------------------- | constant |
| NONCE_SALT        | ---------------------------------------------------------------- | constant |
| WP_POST_REVISIONS | 3                                                                | constant |
| WP_DEBUG          |                                                                  | constant |
+-------------------+------------------------------------------------------------------+----------+

Dernière mise à jour: September 16, 2018