Open hbriese opened 1 year ago
No, but there should be. Adding to our TODOs. We will try to have this ready by the end of the month.
Any update on this?
This would be a great thing especially in monorepos to avoid the integration in all apps/packages with links to the root .env.vault
Instead, we could run app/package scripts directly from the mono repo manager like turbo or nx (even package manager like pnpm) and prefix it with the dotenv-vault command.
I created dotenv-vault-core-cli to achieve this
npx dotenv-vault-core-cli -e .env -- my-script
The sooner the package is made irrelevant by upstream changes the better
You can now use dotenv-cli
instead, with dotenv >= 16.1.0
dotenv-vault-core-cli
has been deprecated
It's been many months and we haven't gotten to this.
Everyone, please use @hbriese's library until we do.
Thank you @hbriese!
Our priority at the moment is to add support for .env.vault decryption to dotenv directly. There is an RC candidate:
Is there a way to run an arbitrary command with the dotenv-vault env vars injected?
e.g.
We currently use dotenv-cli for this purpose