bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Share environment variables between collections

Open sahad78 opened this issue 1 year ago • 2 comments

Hi, Is there a way to share environment variables between collections? It seems that an environment belongs to one specific collection and not global as in Postman.

I'm using Bruno v1.9.0

Thanks

sahad78 avatar Feb 22 '24 09:02 sahad78

You could do like I've done, and create an environments folder outside your root collections folder:

~/bruno
├-- collections
│   ├-- collection_a
│   ├-- collection_b
└-- environments
    ├-- environment_a
    └-- environment_b

And then inside each collection folder, delete the environments folder and replace with a symlink to ../../environments

nathan-skillen avatar Feb 28 '24 00:02 nathan-skillen

I would like this to be built in feature, +1 For now, I will stick with a workaround via symlinks.

vlade11115 avatar Mar 12 '24 12:03 vlade11115

I agree that there is something to do here, because also in our case we have multiple collections sharing the same environment variables

end3rbyte avatar Apr 19 '24 14:04 end3rbyte

Duplicate of #115

lizziemac avatar May 05 '24 15:05 lizziemac

Duplicate of #115

lohxt1 avatar Jun 14 '24 11:06 lohxt1

@nathan-skillen And then inside each collection folder, delete the environments folder and replace with a symlink to ../../environments I did not understand about this solution... can you please elaborate little more step wise.. so that i can do same in my bruno tool..

sudhir-kunchakuri avatar Aug 02 '24 11:08 sudhir-kunchakuri