# Update WP-CLI to the latest version (2.1)

**URL:** <https://community.localwp.com/t/update-wp-cli-to-the-latest-version-2-1/11707>\
**Category:** Completed Feature Requests\
**Created:** [March 25, 2019, 3:29pm UTC](https://community.localwp.com/t/update-wp-cli-to-the-latest-version-2-1/11707 "2019-03-25T15:29:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![benoitchantre](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/benoitchantre/32/4516_2.png) [@benoitchantre](https://community.localwp.com/u/benoitchantre)\
**Post date:** [March 25, 2019, 3:29pm UTC](https://community.localwp.com/t/update-wp-cli-to-the-latest-version-2-1/11707/1 "2019-03-25T15:29:11Z")

</div>

The current version of WP-CLI included with Local is v.1.4.1  
The latest stable version of WP-CLI is v.2.1

Please update WP-CLI for the next release of Local.

---

<div class="post-metadata">

**Author:** ![flyjack](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/flyjack/32/7328_2.png) [@flyjack](https://community.localwp.com/u/flyjack)\
**Post date:** [March 27, 2019, 6:51pm UTC](https://community.localwp.com/t/update-wp-cli-to-the-latest-version-2-1/11707/2 "2019-03-27T18:51:55Z")

</div>

We’re on it! Expect this in the next release.

---

<div class="post-metadata">

**Author:** ![benoitchantre](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/benoitchantre/32/4516_2.png) [@benoitchantre](https://community.localwp.com/u/benoitchantre)\
**Post date:** [March 28, 2019, 8:34am UTC](https://community.localwp.com/t/update-wp-cli-to-the-latest-version-2-1/11707/3 "2019-03-28T08:34:10Z")

</div>

Maybe you could trigger an update of WP-CLI when we create new site, in order to always get the latest version of WP-CLI.

---

<div class="post-metadata">

**Author:** ![flyjack](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/flyjack/32/7328_2.png) [@flyjack](https://community.localwp.com/u/flyjack)\
**Post date:** [March 28, 2019, 12:40pm UTC](https://community.localwp.com/t/update-wp-cli-to-the-latest-version-2-1/11707/4 "2019-03-28T12:40:22Z")

</div>

Great idea! We’re working on formalizing our release schedule so that maintenance releases (with dependency updates) are more regular/consistent.

---

<div class="post-metadata">

**Author:** ![peter.ajtai](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/peter.ajtai/32/17275_2.png) [@peter.ajtai](https://community.localwp.com/u/peter.ajtai)\
**Post date:** [December 8, 2022, 8:20pm UTC](https://community.localwp.com/t/update-wp-cli-to-the-latest-version-2-1/11707/5 "2022-12-08T20:20:48Z")

</div>

The latest version of WP CLI is now 2.7.1. Running the old version causes errors with search and replace, so it’d be good to regularly update WP Cli.
