Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(error) ERR unknown command 'redis-cli'

We have installed the redis client.

When we type the following command inside C:\Program Files\Redis\redis-cli.exe:

redis-cli -h redis-server.example.com -p 6390 ping

It throws the following error:

(error) ERR unknown command 'redis-cli'

And the same command when fired inside inside C:\Windows\System32\cmd.exe throws the following error:

'redis-cli' is not recognized as an internal or external command, operable program or batch file.

Notice that Path is set to C:\Program Files\Redis\redis-cli.exe

What is the problem?

like image 329
xameeramir Avatar asked Jun 09 '26 04:06

xameeramir


1 Answers

Your PATH should be set to directory, not to the file

"C:\Program Files\Redis\"
like image 182
h0x91B Avatar answered Jun 11 '26 17:06

h0x91B



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!