# WP-CLI in Site Shell emits PHP warnings

**URL:** <https://community.localwp.com/t/wp-cli-in-site-shell-emits-php-warnings/30125>\
**Category:** Bugs\
**Tags:** mac, wp-cli, site-shell\
**Created:** [February 2, 2022, 12:21am UTC](https://community.localwp.com/t/wp-cli-in-site-shell-emits-php-warnings/30125 "2022-02-02T00:21:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jtsternberg](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/jtsternberg/32/4837_2.png) [@jtsternberg](https://community.localwp.com/u/jtsternberg)\
**Post date:** [February 24, 2023, 3:22am UTC](https://community.localwp.com/t/wp-cli-in-site-shell-emits-php-warnings/30125/2 "2023-02-24T03:22:23Z")

</div>

This is definitely still a thing.  
Related links:

- [WP CLI errors, "Failed loading ... opcache.so" "xdebug.so" and "Warning: PHP Startup: Unable to load dynamic library ... imagick.so" code unsigned - #29 by ipstenu](http://community.localwp.com/t/wp-cli-errors-failed-loading-opcache-so-xdebug-so-and-warning-php-startup-unable-to-load-dynamic-library-imagick-so-code-unsigned/22719/29)
- [Local Lightning PHP 8 "Open Site Shell" does not work on ZSH](http://community.localwp.com/t/local-lightning-php-8-open-site-shell-does-not-work-on-zsh/30510/)
- [How do I run wp-cli without clicking Open Site Shell? - #2 by alexclst](http://community.localwp.com/t/how-do-i-run-wp-cli-without-clicking-open-site-shell/33087/2)
- [Site shell not using LocalWP's PHP](http://community.localwp.com/t/site-shell-not-using-localwps-php/35202)

I had to build a crazy hack with a `wp` alias that runs Local’s variables before every wp cli call. [Dot-Files/wplocal at master · jtsternberg/Dot-Files · GitHub](https://github.com/jtsternberg/Dot-Files/blob/master/bin/wplocal) (and [Dot-Files/\_wplocalgenerate at master · jtsternberg/Dot-Files · GitHub](https://github.com/jtsternberg/Dot-Files/blob/master/bin/_wplocalgenerate))

LocalWP team, when will this be addressed?

---

_[View the full topic](https://community.localwp.com/t/wp-cli-in-site-shell-emits-php-warnings/30125)._
