I use this tutorial and this command redis-cli --cluster create 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005 --cluster-replicas 1 dosn't work! Shes sent me message Error: Unrecognized option or bad number of args for: '--cluster'

Whot's wrong?! Help!

Official Gude https://redis.io/topics/cluster-tutorial

Comment From: itamarhaber

Hello @Kishinskiy

This is most likely caused by an outdated redis-cli binary - you can verify that with the --version flag. Please note that the --cluster flag has been introduced in version 5.

Feel free to close this issue if that is indeed the case.

Comment From: Kishinskiy

Thanks. I realy use old version.

Comment From: agpenton

well i'm using the version 5.0.4 and still got the same error..

Unrecognized option or bad number of args for: '--cluster'

Server

redis_version:5.0.4

Comment From: nolawang

I also encountered the same problem ,make install will help

Comment From: spencerparkin

I'm getting the same error on windows. My server version is 3.2.100. My client is 3.2.100 also.

Comment From: Hardkore9t8

This install has been the most annoying process. I ran the redis-trib.rb command to create cluster and get this message WARNING: redis-trib.rb is not longer available! You should use redis-cli instead.

All commands and features belonging to redis-trib.rb have been moved to redis-cli. In order to use them you should call redis-cli with the --cluster option followed by the subcommand name, arguments and options.

Use the following syntax: redis-cli --cluster SUBCOMMAND [ARGUMENTS] [OPTIONS]

run the redis-cli --cluster create command and get Unrecognized option or bad number of args for: '--cluster' So how do I create a cluster