Skip to content

A fast CLI tool to merge and convert HTTPie and Postman collections into Postman Collection v2.1.0 format.

License

Notifications You must be signed in to change notification settings

vuon9/postmanizer

Repository files navigation

Postmanzier

A fast CLI tool to merge and convert HTTPie and Postman collections into Postman Collection v2.1.0 format.

Installation

  • Download the latest binary for your OS from the releases page.
  • (Linux/macOS) chmod +x postmanzier-*
  • Or build from source: go build -o postmanzier main.go

Usage

1. Convert a Single HTTPie Collection

Convert an HTTPie collection to Postman format.

postmanzier <input-httpie-collection.json> <output-postman-collection.json>

Input format: HTTPie workspace/collection JSON (see below).

Output: A Postman v2.1.0 collection file.

Example:

postmanzier collection.json output.postman.json

Output:

Migration completed!
* Total APIs: 1
* Total problematic APIs: 0
* Total variables: 0
--> Output file: output.postman.json

Supported input format:

{
  "meta": { "format": "httpie", "version": "1.0.0" },
  "entry": { "name": "Collection Name", "requests": [...] }
}

2. Merge Multiple Collections

Merge multiple HTTPie or Postman collections into a single Postman collection. The tool auto-detects the format from the first input file.

postmanzier merge <output-file.json> <input1.json> <input2.json> ...
  • Each input collection becomes a folder in the output.
  • Variables are merged and deduplicated.

Examples:

Merge HTTPie collections:

postmanzier merge merged-httpie.postman.json collection1.json collection2.json

Output:

HTTPie collections merge completed!
--> Output file: merged-httpie.postman.json

Merge Postman collections:

postmanzier merge merged-postman.postman.json postman_collection1.json postman_collection2.json

Output:

Postman collections merge completed!
--> Output file: merged-postman.postman.json

Supported input formats:

  • HTTPie: see above.
  • Postman v2.1.0:
    {
      "info": { "_postman_id": "...", "name": "Collection Name", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" },
      "item": [...],
      "variable": [...]
    }

Output: Always Postman Collection v2.1.0.


License

MIT

About

A fast CLI tool to merge and convert HTTPie and Postman collections into Postman Collection v2.1.0 format.

Topics

Resources

License

Stars

Watchers

Forks

Languages