diff --git a/references/config.md b/references/config.md index a09d1f39..2cdcb754 100644 --- a/references/config.md +++ b/references/config.md @@ -318,6 +318,52 @@ Here's an annotated example `wp-cli.yml` file: # Inherit configuration from an arbitrary YAML file inherit: prod.yml +### HTTP proxy configuration + +WordPress does not automatically use proxy environment variables such as +`http_proxy` for its HTTP API. For WordPress HTTP API requests during a WP-CLI +run, you can load a small PHP file that defines the same proxy constants +WordPress supports in `wp-config.php`: + +```yaml +# wp-cli.yml +require: + - proxy.php +``` + +```php +