core-command
core-command copied to clipboard
Suggestion for Consistent WP-CLI Commands in wp-config File Creation and WordPress Installation
Hi,
I have a suggestion regarding the WP-CLI commands for creating the wp-config file and the WordPress installation process. When users create the wp-config file, they use the command wp config create --dbname
, --dbuser
, and --dbpass
. However, during the installation process, they need to use --admin_user
and --admin_password
.
My point is that the difference between "pass" and "password" can create confusion. Users might not remember whether to use "pass" or "password" for the different commands. To make it more user-friendly and easier to remember, I suggest standardizing the keywords. For example, use either --dbpass
and --admin_pass
or --dbpassword
and --admin_password
consistently.
Is it possible to rename or add extra commands for this purpose? I realized this issue when I last installed WordPress using WP-CLI. I tried to create the config file with --dbpassword
but received errors. Then, I used --dbpass
successfully. During the installation, I tried --admin_pass
and encountered errors again. I then checked the documentation and found the correct command --admin_password
.
I believe using the same keyword for both commands, like "pass", would be more intuitive and easier to remember.
Thank you for considering this suggestion.
Best Regards,
Bashar