WP CLI errors, "Failed loading ... opcache.so" "xdebug.so" and "Warning: PHP Startup: Unable to load dynamic library ... imagick.so" code unsigned

Since the system version of PHP is being reported, I wonder if there’s an issue with the PATH and the version of WPCLI that’s being used.

@jb510 – what do you get when you run:

which wp
wp --version

I’m guessing this will return a version of WPCLI that’s manually installed as opposed to the one that’s shipped with Local.

For what it’s worth, @Xaver was having some odd interactions with the Local site due to the shell using a manually installed version of WPCLI as opposed to the one that was shipped with Local.

It’s not the same issue as this topic, but you might take a look at this topic to see if it helps with debugging what’s going on here: