Read secrets from .env file

I am trying to deploy my python fastapi application using fly.io, 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
7 Likes

Would still be nice if you could pass in a file or set this in bulk via the web ui

2 Likes