# How can I fetch the Mender Artifact Name

**URL:** <https://hub.mender.io/t/how-can-i-fetch-the-mender-artifact-name/2368>\
**Category:** General Discussions\
**Created:** [August 12, 2020, 11:38am UTC](https://hub.mender.io/t/how-can-i-fetch-the-mender-artifact-name/2368 "2020-08-12T11:38:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![digupats](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/digupats/32/666_2.png) [@digupats](https://hub.mender.io/u/digupats)\
**Post date:** [August 12, 2020, 11:38am UTC](https://hub.mender.io/t/how-can-i-fetch-the-mender-artifact-name/2368/1 "2020-08-12T11:38:17Z")

</div>

How can I fetch the Mender Artifact Name (`MENDER_ARTIFACT_NAME`) from the up board?

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [August 12, 2020, 12:49pm UTC](https://hub.mender.io/t/how-can-i-fetch-the-mender-artifact-name/2368/2 "2020-08-12T12:49:19Z")

</div>

On the device you run:

```auto
mender-client -show-artifact

```

---

<div class="post-metadata">

**Author:** ![digupats](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/digupats/32/666_2.png) [@digupats](https://hub.mender.io/u/digupats)\
**Post date:** [August 12, 2020, 12:51pm UTC](https://hub.mender.io/t/how-can-i-fetch-the-mender-artifact-name/2368/3 "2020-08-12T12:51:39Z")

</div>

> [@mirzak](#):
>
> `mender-client -show-artifact`

It says that command not found. I found another alternative `cat /etc/mender/artifact_info`

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [August 12, 2020, 12:54pm UTC](https://hub.mender.io/t/how-can-i-fetch-the-mender-artifact-name/2368/4 "2020-08-12T12:54:29Z")

</div>

> It says that command not found. I found another alternative `cat /etc/mender/artifact_info`

Ah, then it probably is this:

```auto
mender -show-artifact

```

> cat /etc/mender/artifact\_info

This might not be representative in all situations (mostly there for legacy purposes) and is best to use `mender -show-artifact`

---

<div class="post-metadata">

**Author:** ![digupats](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/digupats/32/666_2.png) [@digupats](https://hub.mender.io/u/digupats)\
**Post date:** [August 12, 2020, 12:56pm UTC](https://hub.mender.io/t/how-can-i-fetch-the-mender-artifact-name/2368/5 "2020-08-12T12:56:48Z")

</div>

> [@mirzak](#):
>
> `mender -show-artifact`

Great, This worked. Thank you very much Mirza. I really appreciate your support.
