Clarification on Environment variables

Thanks for the clarification, makes perfect sense.

I tried to run

flyctl secrets import

But it would just get stuck with no output and I couldn’t exit out of the terminal

I found this

So I used this command and it worked fine

cat .env | fly secrets import

Could you clarify why does the above work and not the normal secrets import command, what does cat .env do?

2 Likes