It's my experience that command line arguments export OK to children processes but variables in the .env file do not. I fixed it in my environment by changing source "${__dirname}/.env" to set -a; source "${__dirname}/.env"; set +a