If you use WP-CLI as a separate container as usual, use this command to do a search replace without going into the container:
docker-compose run --no-deps --rm wpcli --allow-root search-replace "www.bilaltas.net" "dev.bilaltas.net" --recurse-objects --report-changed-only
Code language: Bash (bash)
With less options:
docker-compose run --rm wpcli search-replace "www.bilaltas.net" "dev.bilaltas.net"
Code language: Bash (bash)
Leave a Reply