From 796b70780247e323f07d94a54c10f0f127c6738c Mon Sep 17 00:00:00 2001 From: Pieter Daalder Date: Mon, 19 Feb 2018 16:19:51 +0100 Subject: [PATCH 1/2] Added WP_CLI_PHP to Environment variables --- config.md | 1 + 1 file changed, 1 insertion(+) diff --git a/config.md b/config.md index 8eba4afe..d4c498dd 100644 --- a/config.md +++ b/config.md @@ -301,6 +301,7 @@ WP-CLI's behavior can be changed at runtime through the use of environment varia * `WP_CLI_CONFIG_PATH` - Path to the global `config.yml` file. Default is `~/.wp-cli/config.yml`. * `WP_CLI_DISABLE_AUTO_CHECK_UPDATE` - Disable WP-CLI automatic checks for updates. * `WP_CLI_PACKAGES_DIR` - Directory to store packages installed through WP-CLI's package management. Default is `~/.wp-cli/packages/`. +* `WP_CLI_PHP` - PHP binary path to use when overriding the system default. * `WP_CLI_SSH_PRE_CMD` - When using `--ssh=`, perform a command before WP-CLI calls WP-CLI on the remote server. * `WP_CLI_STRICT_ARGS_MODE` - Avoid ambiguity by telling WP-CLI to treat any arguments before the command as global, and after the command as local. From 635a52aa093c9daade4da8828433a844069f1126 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Fri, 23 Feb 2018 09:24:42 -0800 Subject: [PATCH 2/2] Clarify when this environment variable works --- config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.md b/config.md index d4c498dd..43ea52fe 100644 --- a/config.md +++ b/config.md @@ -301,7 +301,7 @@ WP-CLI's behavior can be changed at runtime through the use of environment varia * `WP_CLI_CONFIG_PATH` - Path to the global `config.yml` file. Default is `~/.wp-cli/config.yml`. * `WP_CLI_DISABLE_AUTO_CHECK_UPDATE` - Disable WP-CLI automatic checks for updates. * `WP_CLI_PACKAGES_DIR` - Directory to store packages installed through WP-CLI's package management. Default is `~/.wp-cli/packages/`. -* `WP_CLI_PHP` - PHP binary path to use when overriding the system default. +* `WP_CLI_PHP` - PHP binary path to use when overriding the system default (only works for non-Phar installation). * `WP_CLI_SSH_PRE_CMD` - When using `--ssh=`, perform a command before WP-CLI calls WP-CLI on the remote server. * `WP_CLI_STRICT_ARGS_MODE` - Avoid ambiguity by telling WP-CLI to treat any arguments before the command as global, and after the command as local.