bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Allow Export of collection and environments via CLI

Open deepvyas opened this issue 1 year ago • 1 comments

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

Currently bruno UI has the feature to allow export of a collection (in Postman format,bruno format, OpenAPI Spec ). If the bruno cli could have a command added to allow the same export functionality that would help in scenarios where this is needed to be done programatically.

Mockups or Images of the feature

Commands like: bru export-collection <collection name> and bru export-env <environment name> could be super useful.

deepvyas avatar Jul 22 '24 09:07 deepvyas

This would be great for automatically generating api documentation 👍

CI/CD Push -> Bruno CLI export to openapi -> redoc generates HTML -> caddy docker container hosts the generated HTML.

lil5 avatar Aug 20 '24 06:08 lil5

I'll probably start working on something similar. Currently, the export functionality is only to Bruno and Postman, in the GUI. I'll support those but openapi exporter would required a separated issue to add it.

my use case is in my CI to export my bruno collection folder to a single json file to be download as an artifact by consumers of our application.

berlingoqc avatar Aug 29 '24 20:08 berlingoqc

Ok i see that the openApi exporter is in the paid version.

I want to add this feature but since i have only access to the open source code base i think i will only be able to do postmand and bruno.

berlingoqc avatar Aug 30 '24 15:08 berlingoqc

Exporting to postman then to openapi could be another strategy.

It might even generate a better result than the ui does, which is pretty barebones.

lil5 avatar Aug 30 '24 21:08 lil5

+1. As a paid user, I see this as an option in the UI but not in the CLI docs. Ideally would like to have CI/CD export via CLI so that I can then upload the OpenAPI spec directly into our preferred docs host. This is the only remaining blocker preventing my org from swapping over to Bruno off of Postman.

adefee avatar Mar 05 '25 04:03 adefee

Legitimate use case would be:

  • I write tests for my endpoints in Bruno Lang.
  • I want to export this to Postman Collection
  • I want to run those tests using Microcks (Contract Testing tool) by importing Postman Collection. Microcks doesn't support Bruno format today - but it does support Postman Collections.

https://github.com/usebruno/bruno/issues/5090#issuecomment-3088680047

anusree-bruno avatar Jul 18 '25 09:07 anusree-bruno