Skip to main content
Updating the URL to the wp-cli documentation to its current location. The link was dead.
Source Link

Sounds like you need to change your default PHP version.

I assume php -v returns 7?

You'll need to change the PATH.

See this: https://stackoverflow.com/questions/31206864/use-different-php-version-cli-executable-for-one-command

Or this: https://wp-cli.org/docs/installing/#using-a-custom-php-binary

Sounds like you need to change your default PHP version.

I assume php -v returns 7?

You'll need to change the PATH.

See this: https://stackoverflow.com/questions/31206864/use-different-php-version-cli-executable-for-one-command

Or this: https://make.wordpress.org/cli/handbook/installing/#using-a-custom-php-binary

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

Sounds like you need to change your default PHP version.

I assume php -v returns 7?

You'll need to change the PATH.

See this: http://stackoverflow.com/questions/31206864/use-different-php-version-cli-executable-for-one-command

Or this: https://wp-cli.org/docs/installing/#using-a-custom-php-binary

Sounds like you need to change your default PHP version.

I assume php -v returns 7?

You'll need to change the PATH.

See this: https://stackoverflow.com/questions/31206864/use-different-php-version-cli-executable-for-one-command

Or this: https://wp-cli.org/docs/installing/#using-a-custom-php-binary

Source Link
Shiv
  • 181
  • 7

Sounds like you need to change your default PHP version.

I assume php -v returns 7?

You'll need to change the PATH.

See this: http://stackoverflow.com/questions/31206864/use-different-php-version-cli-executable-for-one-command

Or this: https://wp-cli.org/docs/installing/#using-a-custom-php-binary