Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
jc00ke
4 years agoOccasional Contributor
Secret reference syntax usable by direnv?
I see on docs/cli/secrets-environment-variables that I can op run -- myapp start but what if I wanted to load secret values via direnv? I don't see anything in the direnv-stdlib and was wondering i...
Former Member
4 years agoHey both!
Nice workaround, @dnsstaiger! Indeed, that should be the closest we can get right now to an integration with direnv.
We actually have something in the oven that should help with this, so stay tuned for the future releases!
In the meantime, I think the workaround above is a pretty good one. If you're not comfortable with op read
-ing multiple times in your .envrc
, there is another way to achieve this, using op run
, as I described here: https://1password.community/discussion/128381/populate-environment-variable-for-active-shell-session#latest
Let me know if this help, jc00ke! We're looking forward to hearing from you!
Best,
Horia