# How implement environment variables?

**URL:** <https://forums.balena.io/t/how-implement-environment-variables/34546>\
**Category:** openBalena\
**Tags:** docker\
**Created:** [September 29, 2019, 8:15am UTC](https://forums.balena.io/t/how-implement-environment-variables/34546 "2019-09-29T08:15:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joachim](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/joachim/32/1390_2.png) [@joachim](https://forums.balena.io/u/joachim)\
**Post date:** [September 29, 2019, 8:15am UTC](https://forums.balena.io/t/how-implement-environment-variables/34546/1 "2019-09-29T08:15:48Z")

</div>

Hello community

i was watching this helpful video to setup openBalena

  
And works properly without any problem.

After this i deployed with " `balena deploy testApp --emulated --logs --build`"  
this git repo [https://github.com/jpmeijers/ttn-resin-gateway-rpi](https://github.com/jpmeijers/ttn-resin-gateway-rpi) to the openBalena Server  
But i have no idea how can set this enviroment variable.  
|GW\_ID|The gateway ID from the TTN console|  
|GW\_KEY|The gateway KEY from the TTN console|  
|GW\_RESET\_PIN|22 (optional)|  
Can anyone help me to implement the environment variable ?

Best regards Joachim

---

<div class="post-metadata">

**Author:** ![blazejewicz](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/blazejewicz/32/2514_2.png) [@blazejewicz](https://forums.balena.io/u/blazejewicz)\
**Post date:** [September 29, 2019, 11:09am UTC](https://forums.balena.io/t/how-implement-environment-variables/34546/2 "2019-09-29T11:09:32Z")

</div>

Hey,  
One could setup env var using the dashboard and here is a relevant doc:  
[https://www.balena.io/docs/learn/manage/serv-vars/](https://www.balena.io/docs/learn/manage/serv-vars/)  
or directly from the CLI (remove/add/list):  
[https://www.balena.io/docs/reference/cli/#envs](https://www.balena.io/docs/reference/cli/#envs)  
See the CLI doc, as it allows you to quickly verify the variables configuration on your local device.

hth

---

<div class="post-metadata">

**Author:** ![joachim](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/joachim/32/1390_2.png) [@joachim](https://forums.balena.io/u/joachim)\
**Post date:** [September 29, 2019, 8:36pm UTC](https://forums.balena.io/t/how-implement-environment-variables/34546/3 "2019-09-29T20:36:03Z")

</div>

Thank you very much for your help.  
Problem solved.

Regards Joachim
