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
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
Had this problem earlier and solved it by copying and pasting the environments folder, located inside the collection folder you selected on creation/import, and that worked for me.
I've been testing out Bruno as an alternative for Postman and was also struggling with copy pasting the environments folder in Windows each time I created a new collection.
I stumbled on this article and now use the following setup:
%userprofile%\Documents\BrunoAPI
contains all my collections and a global environments
folder with my shared environments.
When I create a new collection (eg: %userprofile%\Documents\BrunoAPI\MySuperCoolNewCollection
) I run a small .bat file from that new directory to create a junction to the shared environments file:
mklink /J environments "%userprofile%\Documents\BrunoAPI\environments"
Now all collections where I created that junction share the same environments!
There is nothing like global variables as far as i know, but if you are working on linux you can use shared folders, to share one of the environment folders with the other collections
© 2022 - 2024 — McMap. All rights reserved.