Here's a nice shortcut for bash that exports all environment variables from a dotenv (.env) file into the current terminal session:

export $(cat .env | xargs)