Wp config (WP-CLI)

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen

wp config generates and reads the wp-config.php file.

$ 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.