# Cscli ban list limit?

**URL:** <https://discourse.crowdsec.net/t/cscli-ban-list-limit/64>\
**Category:** Uncategorized\
**Created:** [November 19, 2020, 5:37pm UTC](https://discourse.crowdsec.net/t/cscli-ban-list-limit/64 "2020-11-19T17:37:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gppixelworks](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/gppixelworks/32/38_2.png) [@gppixelworks](https://discourse.crowdsec.net/u/gppixelworks)\
**Post date:** [November 19, 2020, 5:37pm UTC](https://discourse.crowdsec.net/t/cscli-ban-list-limit/64/1 "2020-11-19T17:37:19Z")

</div>

I’ve noticed that using:

_cscli ban list_

Returns what I’d expect. However, the list of local decision’s default limit is 50.

According this [reference in docs](https://doc.crowdsec.net/cscli/cscli_ban_list/), it states using the _–all or -a_ tags when getting a ban list with cscli, that it will list all banned IPs.

I’ve not be able to get a full list. It always limits the display to 50 local decisions.

Entering …

_cscli ban list --help_

… for a list of options doesn’t indicate the ‘all’ option is available.

Is there an alternative way to list all local decisions?

---

<div class="post-metadata">

**Author:** ![ErenJ](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/erenj/32/3_2.png) [@ErenJ](https://discourse.crowdsec.net/u/ErenJ)\
**Post date:** [November 20, 2020, 9:12am UTC](https://discourse.crowdsec.net/t/cscli-ban-list-limit/64/2 "2020-11-20T09:12:30Z")

</div>

Hi @gppixelworks,

Could you please tell me which crowdsec version are you using ?  
I tested with v0.3.6 and I’m able to list all IPs with `cscli ban list --all`

---

<div class="post-metadata">

**Author:** ![gppixelworks](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/gppixelworks/32/38_2.png) [@gppixelworks](https://discourse.crowdsec.net/u/gppixelworks)\
**Post date:** [November 20, 2020, 11:58am UTC](https://discourse.crowdsec.net/t/cscli-ban-list-limit/64/3 "2020-11-20T11:58:01Z")

</div>

Running this version here:

`v0.3.6-2fdf7624da381af605baa46f319f2ed3015807e4`

---

<div class="post-metadata">

**Author:** ![gppixelworks](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/gppixelworks/32/38_2.png) [@gppixelworks](https://discourse.crowdsec.net/u/gppixelworks)\
**Post date:** [November 20, 2020, 12:21pm UTC](https://discourse.crowdsec.net/t/cscli-ban-list-limit/64/4 "2020-11-20T12:21:07Z")

</div>

Well this is embarrassing! 😲 Just ran it again and got a list in excess of 50.

Perhaps I shouldn’t work so late into the night. Could have sworn I’d entered it correctly. Recall trying both `--all -a` options. Can only be my typing skills.

Thanks! 👍

---

<div class="post-metadata">

**Author:** ![ErenJ](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/erenj/32/3_2.png) [@ErenJ](https://discourse.crowdsec.net/u/ErenJ)\
**Post date:** [November 20, 2020, 3:12pm UTC](https://discourse.crowdsec.net/t/cscli-ban-list-limit/64/5 "2020-11-20T15:12:32Z")

</div>

🙂 👍
