# copy fleets variables

**URL:** <https://forums.balena.io/t/copy-fleets-variables/367195>\
**Category:** balenaOS\
**Created:** [March 20, 2023, 12:48pm UTC](https://forums.balena.io/t/copy-fleets-variables/367195 "2023-03-20T12:48:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [March 21, 2023, 12:07pm UTC](https://forums.balena.io/t/copy-fleets-variables/367195/2 "2023-03-21T12:07:08Z")

</div>

Hello @Firat

i’m not sure this is possible in an easy way. However i found this suggestion using a script on `balena cli`. Did you see this?

> [@how to copy ENV variables to another device ?](https://forums.balena.io/t/how-to-copy-env-variables-to-another-device/363558/10):
>
> Thank you @mcraa, this helped. To read ENV variables, I can use: balena envs --device \<my\_device\_id\> or for a fleet: balena envs --fleet \<my\_fleet\_name\> After receiving from one device (or fleet), I was able to write to another device or fleet. I made two scripts using the Balena CLI: Script for adding ENV variables to a fleet: #!/bin/bash # balena env add MY\_ENV\_KEY1 my\_env\_value1 --fleet $1 balena env add MY\_ENV\_KEY2 my\_env\_value2 --fleet $1 balena env add MY\_ENV\_KEY3 my\_env\_valu…

---

_[View the full topic](https://forums.balena.io/t/copy-fleets-variables/367195)._
