How do I download my Code with .ENV (Secrets File?)

I would like to download my tested code, it works as I would want it to. However I cannot seem to find an option to download it, with the equivalent to the secret file included? Do I just copy and past the code or?

1 Like

Hi @ryanjohnspence5 , welcome to the forums!
You can click on the Edit as JSON {} button in the Secrets tab, and copy and paste all the data. Those are the keys and values of your Secrets.
Hope this helps!

1 Like

Download your Repl, extract it, then make a new file called .env and then go to the editor’s Secrets tab. Then, as NateDhaliwal said:

[Make sure to keep .env private though (if you’re using GitHub or anything, use .gitignore to not push the secrets to the repo).]