# Any way to get device attributes / key from meder-cli?

**URL:** <https://hub.mender.io/t/any-way-to-get-device-attributes-key-from-meder-cli/3950>\
**Category:** General Discussions\
**Created:** [August 1, 2021, 6:56am UTC](https://hub.mender.io/t/any-way-to-get-device-attributes-key-from-meder-cli/3950 "2021-08-01T06:56:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uishon](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/uishon/32/1326_2.png) [@uishon](https://hub.mender.io/u/uishon)\
**Post date:** [August 1, 2021, 6:56am UTC](https://hub.mender.io/t/any-way-to-get-device-attributes-key-from-meder-cli/3950/1 "2021-08-01T06:56:55Z")

</div>

Using `mender-cli devices list` which is great but would me happy to get the device attributes as well. Is there an option?

---

<div class="post-metadata">

**Author:** ![lramirez](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lramirez/32/1195_2.png) [@lramirez](https://hub.mender.io/u/lramirez)\
**Post date:** [August 2, 2021, 7:55pm UTC](https://hub.mender.io/t/any-way-to-get-device-attributes-key-from-meder-cli/3950/2 "2021-08-02T19:55:42Z")

</div>

Hi @uishon,

All the information that you see in the web interface is gathered by the official API, so you can get access to that information using the API itself.

I recommend taking a look at [Mender API docs](https://docs.mender.io/api/#device-api-device-inventory)  
Specially take a look at this one [Mender API docs](https://docs.mender.io/api/#management-api-device-inventory-filters-and-search) for filtering and searching options.

Please let me know if you need help using the API.

Luis
