wp user create ignores --nickname
wp user create ignores --nickname and always uses the username instead
It looks like this affects other fields too, such as --user_nicename and --user_url. See #301 .
Weirdly enough, the nickname is only available when you retrieve users via get_users(), and not when you retrieve them via get_user_by()... See https://github.com/wp-cli/wp-cli/pull/5600
Confirming still present in wp cli v2.6.0
@Hlsgs Yes, indeed. I did some work in solving this, but it turns around it is mostly a bug in get_users(). I then tried to use WP_User_Query across the board for all WP-CLI user queries, but that just turned up with different bugs of its own.
This needs more careful investigation in how best to solve.
@Hlsgs Yes, indeed. I did some work in solving this, but it turns around it is mostly a bug in
get_users(). I then tried to useWP_User_Queryacross the board for all WP-CLI user queries, but that just turned up with different bugs of its own. This needs more careful investigation in how best to solve.
Got it! Thank you for the lowdown.