# Wrong number of arguments

**URL:** <https://forums.suse.com/t/wrong-number-of-arguments/17850>\
**Category:** General\
**Created:** [June 30, 2020, 1:20pm UTC](https://forums.suse.com/t/wrong-number-of-arguments/17850 "2020-06-30T13:20:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nishit\_Goel](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/nishit_goel/32/5242_2.png) [@Nishit\_Goel](https://forums.suse.com/u/Nishit_Goel)\
**Post date:** [June 30, 2020, 1:20pm UTC](https://forums.suse.com/t/wrong-number-of-arguments/17850/1 "2020-06-30T13:20:07Z")

</div>

Hi, i got this when i tried to run command :-

kubectl exec -it redis-cluster-0 -n reddis – redis-cli --cluster create --cluster-replicas 1 $(kubectl get pods -l app=redis-cluster -o jsonpath=’{range.items[\*]}{.status.podIP}:6379 ')

ERROR:–  
[ERR] Wrong number of arguments for specified --cluster sub command  
E0630 11:35:33.408025 13023 v3.go:79] EOF  
command terminated with exit code 1

Kindly assist to resolve this

---

<div class="post-metadata">

**Author:** ![cjellick](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/cjellick/32/2876_2.png) [@cjellick](https://forums.suse.com/u/cjellick)\
**Post date:** [June 30, 2020, 5:24pm UTC](https://forums.suse.com/t/wrong-number-of-arguments/17850/2 "2020-06-30T17:24:37Z")

</div>

That is an error specific to redis, so this isnt really the right forum to look for answers, but a quick google shows the usage should be like this:

```auto
redis-cli --cluster create 127.0.0.1:7000 --cluster-replicas 1

```

So, you need one or more ips/hosts after the `create` command

---

<div class="post-metadata">

**Author:** ![Ranjeet\_Ranjan](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/ranjeet_ranjan/32/7583_2.png) [@Ranjeet\_Ranjan](https://forums.suse.com/u/Ranjeet_Ranjan)\
**Post date:** [May 18, 2021, 6:57pm UTC](https://forums.suse.com/t/wrong-number-of-arguments/17850/3 "2021-05-18T18:57:14Z")

</div>

Hi,

I am surprised how your command accepting as per your tutorial.

> **[Deploying Redis Cluster on Top of Kubernetes](https://rancher.com/blog/2019/deploying-redis-cluster)**
>
> Redis is an open source datastore that can store and manipulate high-level data types like lists, maps and sets. Learn how to deploy a Kubernetes Redis cluster

I try to follow the same process. Please update your article with the right command.
