I am using a bash script to automate WordPress sites installation, via command line, using wp-toolkit. How can I set a temporary WordPress site admin password?
The document for WordPress Toolkit Command Line Interface (WordPress Toolkit Command Line Interface | cPanel & WHM Documentation), indicates that ADMIN_PASSWORD environment variable can be used to set password for administrator's username. However, after many attempts I still haven't been able to set a WordPress site administrator's password using the script. Here is the relevant portion of the script that where I try to set the admin password.
/usr/local/bin/wp-toolkit --install -domain-name "mydomain.com" -username "$ID" ADMIN_PASSWORD="${familyName}${ID}" -username "Second admin username" ADMIN_PASSWORD="temporary password for the user"
What option can I use to set the site admin password in the portion of the script shown above? I would appreciate very much your help to resolve this issue.
The document for WordPress Toolkit Command Line Interface (WordPress Toolkit Command Line Interface | cPanel & WHM Documentation), indicates that ADMIN_PASSWORD environment variable can be used to set password for administrator's username. However, after many attempts I still haven't been able to set a WordPress site administrator's password using the script. Here is the relevant portion of the script that where I try to set the admin password.
/usr/local/bin/wp-toolkit --install -domain-name "mydomain.com" -username "$ID" ADMIN_PASSWORD="${familyName}${ID}" -username "Second admin username" ADMIN_PASSWORD="temporary password for the user"
What option can I use to set the site admin password in the portion of the script shown above? I would appreciate very much your help to resolve this issue.
Last edited by a moderator: