Enviromental variables file extension

Hi Team,

Can you provide the suggestion for environmental variable extension is yml or xml or JSON or ini?

Hi @krishnapriya.v, welcome to the community.

Environment variables are not files, and hence they have no extension.
They are simple key/value pairs stored in the process environment.

Not knowing exactly what you are doing, I would suggest using a launch script. a Bash or .Bat file depending on your environment.

The launch script can set environmental variables and then run the app. In theory, the launch script invalidates the extra layer of security that that env vars gives. But it adds a lot of convenience.

So, I didn’t understand if you want a lib for load from files to environment variables, if it’s that, I use this do load from env files to env variables: https://github.com/joho/godotenv