openapi-generator-cli
CLI for openapi generator
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no Python dependencies (low friction), carries a permissive Apache 2.0 license, and addresses a real workflow need—code generation from API specs. The only prerequisite is Java on your PATH, which is documented. Install it if you work with OpenAPI specs and want to automate SDK or stub generation.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Java binary (JDK 11 or later) must be available on PATH, or install with jdk4py extra: pip install openapi-generator-cli[jdk4py]
- Low friction installation with no Python runtime dependencies.
- Actively maintained with recent releases; last commit 2026-08-14.
License · maintenance · safety
APACHE 2.0 (permissive) — Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions.
last release 2026-07-21 (24 days) · last repo commit 2026-08-14 · 26,672 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 756,151 downloads/mo, #5,139 on PyPI
Alternatives
Verify before relying
pip install openapi-generator-cli
openapi-generator-cli version- Specific OpenAPI generator features and output language support beyond the fact sheet
- Performance characteristics for large or complex OpenAPI specifications
- Integration patterns with CI/CD pipelines or build systems
What it is and what it does
openapi-generator-cli is a Python package that wraps the OpenAPI Generator tool, making it available as a command-line interface. It automatically generates API client libraries (SDKs), server stubs, and API documentation from OpenAPI specifications in versions 2.0 and 3.0. The package syncs daily with the upstream Maven repository to stay current with the latest generator releases.
To use it, you install the package via pip and run openapi-generator-cli commands from your terminal. The tool requires Java (JDK 11 or later) to be installed and available on your system PATH, since the underlying generator is Java-based. Alternatively, you can install the optional jdk4py extra to avoid managing a separate Java installation. Once installed, you can invoke the CLI to parse OpenAPI specs and generate code in various target languages and frameworks.
Use it for
- Generate type-safe API client SDKs from OpenAPI specs to reduce manual coding and keep clients in sync with API changes
- Produce server stub code and routing scaffolds from an OpenAPI contract to accelerate backend implementation
- Auto-generate API documentation and interactive API explorer configurations from a single OpenAPI source
- Integrate into CI/CD pipelines to regenerate client libraries whenever the OpenAPI spec is updated
- Support multiple programming languages and frameworks from a single OpenAPI definition
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no Python dependencies (low friction), carries a permissive Apache 2.0 license, and addresses a real workflow need—code generation from API specs. The only prerequisite is Java on your PATH, which is documented. Install it if you work with OpenAPI specs and want to automate SDK or stub generation.
Install
openapi-generator-cli on PyPI
Before you install
Low friction installation with no Python runtime dependencies. Actively maintained with recent releases; last commit 2026-08-14. Requires Java (JDK 11 minimum) on PATH or optional jdk4py package.
Java binary (JDK 11 or later) must be available on PATH, or install with jdk4py extra: pip install openapi-generator-cli[jdk4py]
License in practice
Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install openapi-generator-cli
openapi-generator-cli version
Verify before relying
- Specific OpenAPI generator features and output language support beyond the fact sheet
- Performance characteristics for large or complex OpenAPI specifications
- Integration patterns with CI/CD pipelines or build systems
Package facts
| License | APACHE 2.0 permissive |
| Python support | Supports the current Python release <4,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 24 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 756,151 / month, #5,139 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTyping :: Typed |
Evidence: openapi_generator_cli-7.24.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “openapi code generation”
- openapi-generator-cliProvides a Python CLI wrapper for OpenAPI Generator, enabling…
- drf-yasgGenerates Swagger/OpenAPI 2.0 specifications automatically from…
- openapi-python-clientGenerates type-annotated Python HTTP clients from OpenAPI 3.0 and 3.1…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also openapi-python-client · legit-api-client · tapipy · gooddata-api-client · trieve-py-client · openapi-spec-validator · qase-api-v2-client · openapi3 · aiopenapi3 · mastercard-oauth1-signer