You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have version 2.8.0. Would you like to update to 2.8.1? [y/n] y
Downloading from https://github.com/wp-cli/wp-cli/releases/download/v2.8.1/wp-cli-2.8.1.phar...
md5 hash verified: a0cf91756fd46903c83c436ec1d462eb
New version works. Proceeding to replace.
Error: Cannot move C:\Users\xxx\AppData\Local\Temp\3/wp_647daad3256960.42338796.phar to C:\Program Files\wp\wp-cli.phar
The slash seems suspicious on windows and might be a possible reason (?)
Permissions are ok, I can move the file manually on cmd if I replace the / with \.
On the same console session, the command "cli update" fails however.
The text was updated successfully, but these errors were encountered:
The slash doesn't matter.
I tested with a test.php and renamed the file successfully.
Not sure if a handle prevents the renaming or the cli can't replace itself (?)
When I try to update wp-cli.phar on windows, I get an error message that the temp file cannot be moved.
Command:
php.exe "C:\Program Files\wp\wp-cli.phar" cli update
Output:
The slash seems suspicious on windows and might be a possible reason (?)
Permissions are ok, I can move the file manually on cmd if I replace the / with \.
On the same console session, the command "cli update" fails however.
The text was updated successfully, but these errors were encountered: