7

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?

Zameer Ansari
  • 28,977
  • 24
  • 140
  • 219
  • 1
    Only put the directory containing redis-cli.exe into the `PATH`. `C:\Program Files\Redis` – lit May 08 '17 at 17:12

3 Answers3

16

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

"C:\Program Files\Redis\"
Salah Akbari
  • 39,330
  • 10
  • 79
  • 109
h0x91B
  • 1,211
  • 15
  • 19
3

For me the path was the following:

C:\Program Files\Memurai

Then I had to run the following command instead:

memurai-cli

The Memurai is a Redis Alternative for Windows.

Salah Akbari
  • 39,330
  • 10
  • 79
  • 109
0

Not sure if it helps anyone, but you can also go into your program files find redis-cli, right click, go to properties, Location:

C:\ProgramFiles\Redis

This can be ran in to your shell.

jgmh
  • 639
  • 10
  • 22