# Device Variables not being set on device

**URL:** <https://forums.balena.io/t/device-variables-not-being-set-on-device/58484>\
**Category:** Product support\
**Tags:** support\
**Created:** [January 21, 2020, 4:40pm UTC](https://forums.balena.io/t/device-variables-not-being-set-on-device/58484 "2020-01-21T16:40:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hunterjackson92](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@hunterjackson92](https://forums.balena.io/u/hunterjackson92)\
**Post date:** [January 21, 2020, 4:40pm UTC](https://forums.balena.io/t/device-variables-not-being-set-on-device/58484/1 "2020-01-21T16:40:43Z")

</div>

Hi All,

We are currently having issues adding environment variables on our device via the device variables dashboard. The dashboard seems to accept them just fine, but when we go to the command line and execute

```
echo $<env name>

```

we get nothing back.

I also don’t see the environment variable set in the response of “printenv”

Our previously added device variables are still visible as environment variables though.

---

<div class="post-metadata">

**Author:** ![alexgg](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@alexgg](https://forums.balena.io/u/alexgg)\
**Post date:** [January 21, 2020, 6:08pm UTC](https://forums.balena.io/t/device-variables-not-being-set-on-device/58484/3 "2020-01-21T18:08:10Z")

</div>

Hi, could you please provide us more information about your setup? What is the version of BalenaOS you are using and what device type for example?

---

<div class="post-metadata">

**Author:** ![hunterjackson92](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@hunterjackson92](https://forums.balena.io/u/hunterjackson92)\
**Post date:** [January 22, 2020, 5:30pm UTC](https://forums.balena.io/t/device-variables-not-being-set-on-device/58484/5 "2020-01-22T17:30:19Z")

</div>

Absolutely apologies

Device type: Intel NUC  
OS version: balenaOS 2.29.0+rev1  
Supervisor version: 9.0.1
