How did I install WP-CLI to Windows?

Step 1

cd C:\tools\php

Step 2

curl -o wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar

Step 3

chmod +x wp

Step 4

Result

wp --info

2023-12-27--04-04-27