Created
September 22, 2021 07:48
-
-
Save PiotrCzapla/7a67b505a5e57407e4c9a0499ead270c to your computer and use it in GitHub Desktop.
How to add a wp cli isolated ina a docker container
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
function wpcli(){ | |
docker run -v $(pwd):/var/www/html --rm -it -u "$(stat -c'%u' .)" wordpress:cli "$@" | |
} | |
alias wp='wpcli wp' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment