• 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…
    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

Viewing 1 replies (of 1 total)
  • 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

Viewing 1 replies (of 1 total)
  • The topic ‘WP-CLI not updating in Windows Git Bash’ is closed to new replies.