# How to set env variable in development mode

**URL:** <https://forums.balena.io/t/how-to-set-env-variable-in-development-mode/4819>\
**Category:** balenaOS\
**Tags:** support\
**Created:** [December 25, 2018, 10:04pm UTC](https://forums.balena.io/t/how-to-set-env-variable-in-development-mode/4819 "2018-12-25T22:04:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexb](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alexb/32/1404_2.png) [@alexb](https://forums.balena.io/u/alexb)\
**Post date:** [December 25, 2018, 10:04pm UTC](https://forums.balena.io/t/how-to-set-env-variable-in-development-mode/4819/1 "2018-12-25T22:04:01Z")

</div>

I am developing an application locally, and pushing my changes to my raspberry 3 with:

```
sudo balena push <local_address> -s .

```

I try to specify an env variable in my `.balena-sync.yml` file, but this does not seem to work?

```
local_balenaos:
  app-name: local-app
  build-triggers:
    - Dockerfile: <docker-id>
    - package.json: <package-json-id>
  environment:
    - FOO=bar
destination: /usr/src/app
ignore:
  - .git
  - node_modules/

```

What syntax should I use for this to work?

---

<div class="post-metadata">

**Author:** ![spanceac](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@spanceac](https://forums.balena.io/u/spanceac)\
**Post date:** [January 18, 2019, 9:36am UTC](https://forums.balena.io/t/how-to-set-env-variable-in-development-mode/4819/2 "2019-01-18T09:36:41Z")

</div>

Hi @alexb,

What version of the balena cli are you using?

Also how do you check if setting the env variable worked?
