Skip to content

copy your environment variables from fleet a to fleet b

License

Notifications You must be signed in to change notification settings

MelleKoning/balena-copy-envs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Copy balena fleet variables from fleet A to fleet B 📝

This Bash script allows you to copy environment variables from one Balena fleet to another.

Prerequisites🚀

  1. balena cli : https://github.com/balena-io/balena-cli
  2. jq : https://stedolan.github.io/jq/

Usage 🔥

To use this script, run the following command:

./balena-copy.sh <source_fleet_name> <destination_fleet_name>

Where <source_fleet_name> is the name of the fleet where the environment variables will be copied from, and <destination_fleet_name> is the name of the fleet where the environment variables will be copied to.

This will retrieve the environment variables from <source_fleet_name>, store them in a JSON file, and then add each variable to <source_fleet_name>. Once the script has finished running, you will see a message indicating that the environment variables were successfully copied.

Note: You must be logged in to the Balena CLI with an account that has access to both fleets in order to use this script.

Upcoming features 🔥

  1. copy variables to multiple fleets
  2. device variable support
  3. specifying the service name for the environment variable

Licence

developed by Firat YILDIRIM, for an open source contribution for balena cloud

About

copy your environment variables from fleet a to fleet b

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%