Read secrets from .env file

I am trying to deploy my python fastapi application using, but I find that there is only one method to upload my secrets, can I upload the secrets from .env file?

This command works, but better write it down…

cat .env | tr '\n' ' ' | xargs flyctl secrets set