Skip to content

Instantly share code, notes, and snippets.

Anthony Hartnell WebAssembler

Block or report user

Report or block WebAssembler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
WebAssembler / gist:443c4ab7524d257d746750fa80ef2ba7
Last active Aug 8, 2019
WP CLI command shortcut for Docker
View gist:443c4ab7524d257d746750fa80ef2ba7
# Docker WP CLI command shortcut
# Step 1. Put this in your ~/.bashrc or ~/.zshrc file
wp() {
docker-compose exec php wp "$@" --allow-root
# Step 2. Open up a new shell to reload the config
# Step 3. Usage - type `wp post list` or any other standard wp cli command.
You can’t perform that action at this time.