Created
January 4, 2019 08:38
-
-
Save mklasen/ff431f976d454f74ce4c86e23d8ebc25 to your computer and use it in GitHub Desktop.
Create new user for local development with WP-CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wp user create wpadmin [email protected] --user_pass=password | |
| wp user set-role wpadmin administrator | |
| # Multisite: | |
| wp super-admin add wpadmin | |
| ## For each multisite url | |
| wp user set-role wpadmin administrator --url=domain.test/subsite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment