How Can I setup WP CLI on Windows development machine running AMPPS?

Installing wp-cli through Composer is the way to go. For instance:

  1. $ cd C:\
  2. $ composer create-project wp-cli/wp-cli --no-dev
  3. Copy the path to the bin directory inside the wp-cli directory (something along the lines of C:\wp-cli\bin)
  4. Add copied path to the Windows Path variable (tutorial)

Exit all CMD’s (or git bash) and reopen them. Now go to one of your WordPress installs and type wp core version. You should get the WP version

error code: 523