portman
Portman is a CLI tool that converts OpenAPI specifications into Postman collections and automatically injects contract, variation, and fuzz tests. It integrates with Newman for automated testing and supports uploading collections to Postman workspaces, making it suitable for API-first CI/CD pipelines.
Key facts
Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.
| Field | Value |
|---|---|
| Repository | apideck-libraries/portman |
| Owner | apideck-libraries |
| Primary language | TypeScript |
| License | Apache-2.0 — OSI-approved |
| Stars | 685 |
| Forks | 61 |
| Open issues | 50 |
| Latest release | v1.35.0 (2026-05-23) |
| Last updated | 2026-05-23 |
| Source | https://github.com/apideck-libraries/portman |
What portman is
Written in TypeScript, Portman leverages openapi-to-postman and openapi-format libraries to transform OAS 3.0/3.1 documents into executable Postman collections. It provides configuration-driven test injection, request parameter resolution, collection variable assignment, and Newman test execution within a single CLI workflow.
Get the portman source
Clone the repository and explore it locally.
git clone https://github.com/apideck-libraries/portman.gitcd portman# follow the project's README for install & configurationNeed it deployed, integrated, or customized instead? DEV.co ships production installs.
Best use cases
Implementation considerations
- Requires Node.js runtime and npm/yarn for installation; CLI invocation via npx, local, or global install depending on deployment context.
- Configuration driven via multiple JSON/YAML files (portman-config.json, postman-config.json, oas-format-filter.json); file organization and validation critical for scaling across teams.
- OpenAPI spec quality directly impacts collection usefulness; incomplete schema definitions, missing examples, or unresolved $refs will result in incomplete or invalid Postman requests.
- Newman integration requires separate setup of environment variables, iteration data, and test assertions; Portman generates the collection but does not enforce test logic.
- Postman API authentication (API key/token) mandatory for syncPostman and collection upload features; secure credential storage required in CI/CD environments.
When to avoid it — and what to weigh
- Graphql-First Architecture — Portman is built explicitly for OpenAPI/Swagger specs. If your APIs are primarily GraphQL, this tool is not applicable.
- Non-JSON/YAML Spec Formats — Only OpenAPI 3.0 and 3.1 are supported. If your API contracts use Protocol Buffers, WSDL, or other formats, conversion would require pre-processing.
- Minimal Test Requirements — If you only need basic smoke tests and do not require contract validation, variation testing, or fuzzing, the overhead of configuration and test generation may not justify adoption.
- Postman Alternative Ecosystems — If your organization has standardized on API testing frameworks other than Postman (e.g., REST Assured, Karate, SoapUI), integrating Portman's output may conflict with existing tooling and practices.
License & commercial use
Licensed under Apache License 2.0 (SPDX: Apache-2.0). A permissive OSI-approved license permitting commercial use, modification, and distribution with warranty disclaimers and liability limitations. Requires retention of license and copyright notices.
Apache-2.0 is a permissive license that explicitly permits commercial use, including proprietary derivative works. No additional licensing or permission is required for commercial deployment. However, verify compliance with any third-party dependencies (e.g., openapi-to-postman, openapi-format) independently.
DEV.co evaluation signals
Editorial assessment — not user reviews. Directional, with an explicit confidence level.
| Signal | Assessment |
|---|---|
| Maintenance | Active |
| Documentation | Adequate |
| License clarity | Clear |
| Deployment complexity | Low |
| DEV.co fit | Strong |
| Assessment confidence | High |
Requires secure handling of Postman API keys when using syncPostman functionality; recommend environment variable injection in CI/CD rather than plaintext config. CLI accepts .env files for variable injection into collections; ensure .env files are not committed to version control and are restricted to sensitive environments. No explicit security audit or vulnerability disclosure policy documented in provided DATA. Review dependency chain (openapi-to-postman, openapi-format, Newman) for known CVEs before production deployment.
Alternatives to consider
Insomnia
Native OpenAPI import and test generation with built-in environment management; lacks CLI-first, CI/CD-optimized workflow that Portman emphasizes. Proprietary SaaS with alternative commercial model.
Swagger UI / SwaggerHub
Strong for OpenAPI visualization and documentation; limited for automated test suite generation and CI/CD integration. Requires separate test framework (e.g., Karate, REST Assured) for contract testing.
Prism (Stoplight)
OpenAPI-to-mock-server tool for contract testing; does not generate Postman collections or Newman-compatible test suites. Complementary rather than direct alternative.
Build on portman with DEV.co software developers
Use Portman to convert your OpenAPI documentation into executable test suites and integrate contract testing into your CI/CD pipeline. Start with a local install or try npx @apideck/portman today.
Talk to DEV.coRelated on DEV.co
Explore the category and the services that help you build with it.
portman FAQ
Can Portman convert GraphQL schemas to Postman collections?
Is Postman account required to use Portman?
Can Portman run tests without Newman?
How does Portman handle OpenAPI specs with circular references?
Software developers & web developers for hire
Adopting portman is usually one piece of a larger software development effort. As a software development agency, DEV.co provides software development services and web development expertise — pairing senior software developers and web developers with your team to design, build, and operate open-source testing software in production.
Automate Your API Testing from OpenAPI Specs
Use Portman to convert your OpenAPI documentation into executable test suites and integrate contract testing into your CI/CD pipeline. Start with a local install or try npx @apideck/portman today.