dotenvy icon indicating copy to clipboard operation
dotenvy copied to clipboard

Add the ability to use multiple env files in the dotenvy tool

Open rustafariandev opened this issue 9 months ago • 4 comments

rustafariandev avatar Jun 12 '25 13:06 rustafariandev

Do you mean the CLI tool? What are you trying to do?

allan2 avatar Jun 12 '25 13:06 allan2

Yes the cli tool, something like the following. dotenvy -f file1.env -f file2.dev env

I have a PR ready if you find this interesting.

rustafariandev avatar Jun 12 '25 13:06 rustafariandev

I'm inclined to say this is unnecessary. The shell's file concatenation should suffice for most use cases. Thoughts?

allan2 avatar Jun 12 '25 14:06 allan2

You should also be able to use nested invocations to work as is, e.g. for your example:

detenvy -f file1.env dotenvy -f file2.dev env

Code0x58 avatar Oct 27 '25 18:10 Code0x58