Skip to content

Commit 9f17892

Browse files
authored
Add db_password argument alias (#227)
1 parent 02e285e commit 9f17892

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ wp config delete <name> [--type=<type>] [--config-file=<path>]
204204
Generates a wp-config.php file.
205205

206206
~~~
207-
wp config create [--dbname=<dbname>] [--dbuser=<dbuser>] [--dbpass=<dbpass>] [--dbhost=<dbhost>] [--dbprefix=<dbprefix>] [--dbcharset=<dbcharset>] [--dbcollate=<dbcollate>] [--locale=<locale>] [--extra-php] [--skip-salts] [--skip-check] [--force] [--config-file=<path>] [--insecure] [--ssl]
207+
wp config create [--dbname=<dbname>] [--dbuser=<dbuser>] [--dbpass|db_password=<dbpass>] [--dbhost=<dbhost>] [--dbprefix=<dbprefix>] [--dbcharset=<dbcharset>] [--dbcollate=<dbcollate>] [--locale=<locale>] [--extra-php] [--skip-salts] [--skip-check] [--force] [--config-file=<path>] [--insecure] [--ssl]
208208
~~~
209209

210210
Creates a new wp-config.php with database constants, and verifies that
@@ -218,7 +218,7 @@ the database constants are correct.
218218
[--dbuser=<dbuser>]
219219
Set the database user. Required unless `--skip-check` is used or the SQLite integration drop-in is detected.
220220

221-
[--dbpass=<dbpass>]
221+
[--dbpass|db_password=<dbpass>]
222222
Set the database user password.
223223
---
224224
sensitive: true

‎src/Config_Command.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private static function get_initial_locale() {
126126
* [--dbuser=<dbuser>]
127127
* : Set the database user. Required unless `--skip-check` is used or the SQLite integration drop-in is detected.
128128
*
129-
* [--dbpass=<dbpass>]
129+
* [--dbpass|db_password=<dbpass>]
130130
* : Set the database user password.
131131
* ---
132132
* sensitive: true

0 commit comments

Comments
 (0)