Command Line Option to Specify Collection on GUI Startup
BRU-3687
I have checked the following:
- [X] I've searched existing issues and found nothing related to my issue.
Describe the feature you want to add
I would like to request a new feature for Bruno that enhances usability for users who work with multiple projects. It would be beneficial to have the ability to specify a collection directly from the command line when starting Bruno's GUI (not the CLI version). This feature would allow users to quickly access a specific collection without the need to navigate through all available collections, streamlining the workflow when switching between multiple projects.
Mockups or Images of the feature
A new command line option, --collection, could be introduced. Users could start Bruno's GUI from the terminal with this option followed by the path to the desired collection, like so:
bruno --collection=/path/to/collection
Upon startup, the GUI would then directly display the specified collection, making it easier to focus on the relevant project without additional navigation.
Use Case: This feature is particularly useful for developers and project managers who frequently switch contexts between different projects. It would reduce the time spent on finding and loading the appropriate collection, thereby enhancing productivity and user experience.
+1
A data point from a different angle than switching between collections: for us the collection is part of a repository, not something kept on the side.
It lives in the meta repository that holds our eleven services, committed and shared with the team, and is generated from those services so it cannot drift from the API it describes. Everything else a new colleague needs is a command — clone the projects, pull the secrets, copy two credential templates, start the stack. Opening the collection is the only step that is prose: "start Bruno, use Open Collection, navigate to bruno/ inside the checkout you just made".
open -a Bruno <path> is not a workaround: Bruno registers a bruno:// URL scheme in its Info.plist but no CFBundleDocumentTypes, so macOS has no way to hand it a directory either.
bruno --collection <path> as proposed would be enough for us. Even less would do — accepting a path and adding it to the sidebar without focusing a window would already let a setup guide be one list of commands instead of a list plus a paragraph.
Thanks for raising this, and apologies for the long wait here.
We're discussing it internally with the larger team and will share an update once we have something.