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

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

Shiv
  • 181
  • 7