Using wpcli with Local

Issue Summary

I’m trying to use WPCLI to export a database and it’s throwing errors:

-bash: /Users/mikemuller/.profile: No such file or directory
-bash: wp: command not found

I’m running Big Sur if that helps. I thought that WPCLI was part of Local. Any ideas??

Are you running these commands in the Site Shell?

Yes, triggering it from the Local admin panel for the site.

Can you screenshot the Site Shell and the command causing an error?

Might have been a terminal issue. I changed over to Hyper and now I get this:

mikemuller@Mikes-MacBook-Pro public % wp db export
Failed loading /Users/mikemuller/Library/Application Support/Local/lightning-services/php-7.4.1+15/bin/darwin/lib/php/extensions/no-debug-non-zts-20190902/opcache.so: dlopen(/Users/mikemuller/Library/Application Support/Local/lightning-services/php-7.4.1+15/bin/darwin/lib/php/extensions/no-debug-non-zts-20190902/opcache.so, 9): Symbol not found: _zend_op_array_extension_handles
Referenced from: /Users/mikemuller/Library/Application Support/Local/lightning-services/php-7.4.1+15/bin/darwin/lib/php/extensions/no-debug-non-zts-20190902/opcache.so
Expected in: flat namespace
in /Users/mikemuller/Library/Application Support/Local/lightning-services/php-7.4.1+15/bin/darwin/lib/php/extensions/no-debug-non-zts-20190902/opcache.so
Xdebug requires Zend Engine API version 320190902.
The Zend Engine API version 320180731 which is installed, is outdated.

Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20190902
PHP compiled with module API=20180731
These options need to match
in Unknown on line 0
mysqldump: [ERROR] unknown option ‘–defaults’
mikemuller@Mikes-MacBook-Pro public %

Might need to update PHP 7.4 in lightning services. Search forum for that. I don’t have a ready link.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.