Level up your business security with free, on-demand training and certification. Explore 1Password Academy today →
Forum Discussion
cellulosa
1 month agoNew Contributor
Bun cannot read 1Password-mounted .env files directly
Hi everyone, I’m experimenting with 1Password Local Environment Files for local development, but I ran into an issue when using Bun. Even though I can cat .env and see the correct contents, running:...
cellulosa
6 days agoNew Contributor
well if I have to run
varlock run -- I might run directly
op run --
theo
6 days agoOccasional Contributor
There are a bunch of drop in integrations so in many cases you dont run it that way. Also op run doesnt work with environments. Tons of other features as well, its a full toolkit to deal with config. Loading from 1pass is just one small part of it. But I thought I'd mention because it solves your specific problem of loading environments secrets into a bun app.
- cellulosa6 days agoNew Contributor
It does! I do run for example
op run --environment id --no-masking -- claudeand works perfectly; namely, variables are loaded in that shell. But What I'd like to do is simply having 1password environment to mount the .env file and then I can run commands without op run et al - but thanks for the suggestion I'll have a look at the docs
- theo6 days agoOccasional Contributor
my bad - I missed the note on that docs page! Regardless check it out, you might like it - especially in JS-based projects and monorepos.