When you need to export all variable from .env in linux/MacOS using oneliner:

set -a && source .env && set +a