wp config create
Generates a wp-config.php file
Options
Name | Description |
---|---|
--dbname <dbname> | Set the database name |
--dbuser <dbuser> | Set the database user |
--dbpass <options> | Set the database password |
--dbhost <default> | Set the database host |
--dbprefix <default> | Set the database table prefix |
--dbcharset <default> | Set the database charset |
--dbcollate <dbcollate> | Set the database collation |
--locale <locale> | Set the WPLANG constant. Defaults to $wp_local_package variable |
--extra-php | If set, the command copies additional PHP code into wp-config.php from STDIN |
--skip-salts | If set, keys and salts won’t be generated, but should instead be passed via --extra-php |
--skip-check | If set, the database connection is not checked |
--force | Overwrites existing files, if present |
--insecure | Retry API download without certificate validation if TLS handshake fails. Note: This makes the request vulnerable to a MITM attack |