# Mender-cli only returns 20 devices, but we have 54

**URL:** <https://hub.mender.io/t/mender-cli-only-returns-20-devices-but-we-have-54/7352>\
**Category:** General Discussions\
**Tags:** mender-cli\
**Created:** [November 26, 2024, 4:50pm UTC](https://hub.mender.io/t/mender-cli-only-returns-20-devices-but-we-have-54/7352 "2024-11-26T16:50:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bssi](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@bssi](https://hub.mender.io/u/bssi)\
**Post date:** [November 26, 2024, 4:50pm UTC](https://hub.mender.io/t/mender-cli-only-returns-20-devices-but-we-have-54/7352/1 "2024-11-26T16:50:41Z")

</div>

We’re using hosted mender. When I run `mender-cli devices list` I only get back info on 20 devices, but we have 54. I’m using mender-cli 1.12.0 from the Downloads page.

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [November 27, 2024, 12:47pm UTC](https://hub.mender.io/t/mender-cli-only-returns-20-devices-but-we-have-54/7352/2 "2024-11-27T12:47:31Z")

</div>

Hi @bssi,

Yes, that’s basically a bug due to pagination. I’ll raise it to the devs, but for the meantime the easiest workaround is to call the API directly, like [Mender API docs](https://docs.mender.io/api/#management-api-device-authentication-list-devices), for example using `curl`.

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![bssi](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@bssi](https://hub.mender.io/u/bssi)\
**Post date:** [November 27, 2024, 2:18pm UTC](https://hub.mender.io/t/mender-cli-only-returns-20-devices-but-we-have-54/7352/3 "2024-11-27T14:18:35Z")

</div>

Ok, thank you.
