Export env To export env variable into the shell using .env file use the following command: export $(xargs </home/ubuntu/beagle/.env)