Title: WP-CLI not updating in Windows Git Bash
Last modified: June 20, 2024

---

# WP-CLI not updating in Windows Git Bash

 *  [Eric Hepperle](https://wordpress.org/support/users/codeslayer2010/)
 * (@codeslayer2010)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wp-cli-not-updating-in-windows-git-bash/)
 * Hi, I’m using Git Bash on Windows and when I run the `wp cli update`, this is
   the reply I get:
 * > You have version 2.9.0. Would you like to update to 2.10.0? [y/n] y
   >  Downloading
   > from [https://github.com/wp-cli/wp-cli/releases/download/v2.10.0/wp-cli-2.10.0.phar&#8230](https://github.com/wp-cli/wp-cli/releases/download/v2.10.0/wp-cli-2.10.0.phar&#8230);
   > md5 hash verified: 6710e90c3ed173925acd35ce5fe5aaf9 New version works. Proceeding
   > to replace.
   > Warning: rename(C:\Windows\TEMP/wp_6674723de31cd5.21461515.phar,C:\Users\[my_username]\
   > AppData\Local\Programs\Local\resources\extraResources\bin\wp-cli\wp-cli.phar):
   > Access is denied (code: 5) in phar://C:/Users/[my_username]/AppData/Local/Programs/
   > Local/resources/extraResources/bin/wp-cli/wp-cli.phar/vendor/wp-cli/wp-cli/
   > php/commands/src/CLI_Command.php on line 378
   >  Error: Cannot move C:\Windows\
   > TEMP/wp_6674723de31cd5.21461515.phar to C:\Users\[my_username]\AppData\Local\
   > Programs\Local\resources\extraResources\bin\wp-cli\wp-cli.phar
    -  This topic was modified 1 year, 11 months ago by [Eric Hepperle](https://wordpress.org/support/users/codeslayer2010/).
    -  This topic was modified 1 year, 11 months ago by [Eric Hepperle](https://wordpress.org/support/users/codeslayer2010/).
    -  This topic was modified 1 year, 11 months ago by [Eric Hepperle](https://wordpress.org/support/users/codeslayer2010/).

Viewing 1 replies (of 1 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wp-cli-not-updating-in-windows-git-bash/#post-17842375)
 * To me, that sounds very much like a permissions problem on your system. What 
   is strange, of course, is that according to the path information, it happens 
   within your user profile. Nevertheless, the problem must be somewhere there.
 * If you can’t find it, you could also ask the wp cli developers, but I haven’t
   found any posts there about your problem: [https://github.com/wp-cli/wp-cli/issues](https://github.com/wp-cli/wp-cli/issues)

Viewing 1 replies (of 1 total)

The topic ‘WP-CLI not updating in Windows Git Bash’ is closed to new replies.

## Tags

 * [windows](https://wordpress.org/support/topic-tag/windows/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/wp-cli-not-updating-in-windows-git-bash/#post-17842375)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
