Skip to content

Instantly share code, notes, and snippets.

@mrpatrick
Created August 2, 2016 16:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrpatrick/7b585a611be1177c12b03d59eaf991af to your computer and use it in GitHub Desktop.
Save mrpatrick/7b585a611be1177c12b03d59eaf991af to your computer and use it in GitHub Desktop.
Create new wordpress admin user using wp-cli / docker
docker run -e --user=apache -i -t -w /var/www/ --volumes-from PROJECTNAME_PROJECTNAME_1 --link channelone_db_1:db_1 docker.io/avatarnewyork/dockerenv-apache:php56 docker-umask-wrapper.sh /.composer/vendor/wp-cli/wp-cli/bin/wp --allow-root --path=/var/www/html user create admin myemail@myhost.com --role=administrator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment