List users

Replace $site by the website for which you want to list users:

# wp --allow-root --path=/usr/share/wordpress --url=$site.squat.net user list

Add --role=administrator to show only admininstrators.

Add an admin user

Replace $site.squat.net by the website on which you wish to add an admin, $user by the username wanted, and $email by the corresponding email.

You can also create users with another role.

# wp --allow-root --path=/usr/share/wordpress --url=$site.squat.net user create $user $email --role=administrator

It will generate a password and print it on the console.

Remove a user

# wp --allow-root --path=/usr/share/wordpress --url=$site.squat.net user delete $user