woordpress toolkit - create new install via rest api (cli) with password
Please allow to set wordpress admin password when installing new wordpress site via cli / rest api cli. or atleast return the created password.
It is already possible now to specify WordPress password during the installation of WordPress via CLI. You will need to use the ADMIN_PASSWORD environment variable.
For example:
ADMIN_PASSWORD=secretPASS plesk bin extension wp-toolkit —install (…)
This approach for specifying passwords was chosen for security reasons.
—AK
-
Nathan Friend commented
Can you please provide a full example of this call. I am not able to get this to work with the REST API as I am not sure how to express the environment value within this context.
{ "params": ["--call", "wp-toolkit", "--install"] }
-
Yuval commented
This should be documented somewhere, i couldn't find that anywhere.
-
Yuval commented
i want to create new wordpress site remotly via api, but currnlly i can't know the wordpress admin password that was set since i don't get it back to me after the cli call.
i wan't or get that password back to me via api call, or be able to set my own password.thanks!