Skip to main content

Set temporary WordPress site admin password in script that automate WordPress installation using WordPress toolkit

Comments

2 comments

  • cPRex Jurassic Moderator
    Hey there! I've reached out to the WordPress Toolkit team about this issue and I'll post another message as soon as I have more details.
    0
  • cPRex Jurassic Moderator
    @crd - it looks like your reply came through an email instead of as a post to this page, so I'm going to include a copy of that here to help out other users in the future: "A technical support technician provided information that helped me to resolve the issue. Temporary password can be set up by assigning the password to the ADMIN_PASSWORD environment variable and exporting the variable before calling the wp-toolkit command. For example, it can be done as follows: export ADMIN_PASSWORD="the password" wp-toolkit --install -domain-name mydomain.ca -username "username" -path "the path" #Unset the environment variable unset ADMIN_PASSWORD"
    0

Please sign in to leave a comment.