Project

General

Profile

Add a user from CMD » History » Version 2

Gareth Eaton, 09/27/2023 08:08 PM

1 1 Gareth Eaton
h1.  Creating an Administrator User in WordPress Using WP-CLI
2
3
[[Download WP if you need it]]
4 2 Gareth Eaton
5
6
<pre>
7
wp user create NEW-USER-NAME MAIL@example.com --role=administrator --user_pass=YOUR-PASSWORD
8
</pre>
9
10
You can replace...
11
12
 "NEW-USER-NAME" with the desired username, 
13
"MAIL@example.com" with the email address for the new user, 
14
and "YOUR-PASSWORD" with the desired password for the new user,
15
and "administrator" with the desired role for the new user.