Forum Discussion

VirtualWolf's avatar
VirtualWolf
Occasional Contributor
2 months ago

Environments feature request: Add notes to variables & insert them as comments in the final .env

Hey folks!

I'm really liking the Environments Beta, but one thing I'm missing is the ability to keep the comments I had in my old manual `.env` file. For example I have an API key that has no indication of which actual account it's for, so it would be really nice to be able to add this as a note in 1Password and have it end up in the resulting .env file. So in this example, the "API_KEY" variable would have a note attached in 1Password that said "Associated account is frobulator@example.com" and the resulting .env file would look like this:

$ cat .env
# This file was generated by 1Password. Any manual edits will be lost.
# For more information, visit: https://developer.1password.com/docs/environments/local-env-file
BASE_URL=https://prod.example.com
# Associated account is frobulator@example.com
API_KEY=uophfpanfphbofsgfoibCVHDFBahpis