# Local on Windows not using bundled WP-CLI

**URL:** <https://community.localwp.com/t/local-on-windows-not-using-bundled-wp-cli/33815>\
**Category:** Bugs\
**Tags:** windows, wp-cli, windows-11\
**Created:** [October 21, 2022, 7:33pm UTC](https://community.localwp.com/t/local-on-windows-not-using-bundled-wp-cli/33815 "2022-10-21T19:33:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sternerstuff](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@sternerstuff](https://community.localwp.com/u/sternerstuff)\
**Post date:** [October 21, 2022, 7:33pm UTC](https://community.localwp.com/t/local-on-windows-not-using-bundled-wp-cli/33815/1 "2022-10-21T19:33:47Z")

</div>

# Bug Summary

If I “Open Site Shell” and run `which wp`, it shows the version of WP-CLI I’ve installed globally on my machine via Composer, assuming it’s been added to my PATH. If I remove it from my PATH, I actually get an error that `wp` was not found on the PATH.

# Steps to reproduce

- Run Windows
- Install Local
- Install WP-CLI globally via Composer
- Add the global Composer bin directory to your PATH
- Launch Local
- Create site with Local
- Launch site shell
- `which wp`
- See global WP-CLI install path
- Remove Composer bin directory from your PATH
- Relaunch Local
- Start site shell
- `which wp`
- See `which: no wp in (PATH_HERE)`
- See Local’s bundled `wp` is, in fact, on the PATH. But for some reason, not resolving.

# Environment Info

Describe your environment.

- What Operating System are you using? **Windows 11 Pro 22H2**
- What versions of site software (Nginx, Apache, PHP, MySQL) is used? **PHP 7.4.1, MySQL 8.0.16**
- What version of Local is installed? **6.4.3+6116**

# Supporting info

Please provide your Local Log.  
[local-lightning.log](https://community.localwp.com/uploads/short-url/d1uOyPD9c7cnoDP99WDsiEgqPrk.log) (145.9 KB)

Include any screenshots or video recordings of the issue to help others reproduce.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [October 20, 2024, 7:34pm UTC](https://community.localwp.com/t/local-on-windows-not-using-bundled-wp-cli/33815/2 "2024-10-20T19:34:25Z")

</div>

This topic was automatically closed after 730 days. New replies are no longer allowed.
