EdgeMicro - Setting environment variables

In the documentation here , it says we can set following environment variables but where and if config yaml file , then under which section ?

  • EDGEMICRO_ORG
  • EDGEMICRO_ENV
  • EDGEMICRO_KEY
  • EDGEMICRO_SECRET

Please help. Thanks

0 1 241
1 REPLY 1

These environment variables are not to be set in a config YAML, but are instead set on the operating system. For Linux/Mac you can set them like this:

EDGEMICRO_ORG=myorg

Better is to create add the variables in your .profile file, so that they are maintained for each session.

If you happen to your Edgemicro on Windows then see here about Windows environment variables: https://www.youtube.com/watch?v=bEroNNzqlF4