This will install wp-cli in your machine
npm install wp-commandlinebash
npm install wp-commandline -g
`
This will install all wp-cli commands in your terminal. The only thing requires is nodejs, php and mysql installed in your machine.
After installing wp-commandline type below command to check whether the wp command is working or not.
`bash
wp --info
``