`eval "$(cat .env)"` to load environment from env file (comments are supported). Use `eval "$(cat .e
eval "$(cat .env)"
to load environment from env file (comments are supported). Use eval "$(cat .env)" python main.py
to make envs accessible in child processes (main.py
). If this dont work you can use export $(xargs <.env) && python main.py
. To skip empty lines and comment lines (starts with #
), use: export $(grep -Ev '^(#|$)' .env | xargs)