This commit is contained in:
2026-07-02 15:54:39 -06:00
commit 9883323161
17470 changed files with 4470592 additions and 0 deletions
@@ -0,0 +1,17 @@
# Debugging WP-CLI
## WP not found / wrong WP root
- Run `wp --info`.
- Provide `--path=<wordpress-root>` if WP is not in the current directory.
- Confirm `wp-config.php` exists in the expected root.
## HTTP/URL targeting issues
- On multisite, include `--url=<site-url>` for site-specific actions.
## Permission/file ownership issues
- If running in containers, ensure youre using the same user/volume mapping as the app.
- Avoid `--allow-root` unless you understand the environment and have no alternative.