# openapitools/openapi-generator-cli

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/openapitools-openapi-generator-cli).**

1,956 stars · 210 forks · TypeScript · Apache-2.0

## Links

- GitHub: https://github.com/OpenAPITools/openapi-generator-cli
- awesome-repositories: https://awesome-repositories.com/repository/openapitools-openapi-generator-cli.md

## Topics

`npm` `openapi` `openapi-generator` `openapi2` `openapi3`

## Description

OpenAPI Generator CLI is a command-line utility designed to automate the creation of API artifacts from specification files. It functions as a tool for generating client libraries, server stubs, and documentation, enabling developers to produce consistent boilerplate code and reference materials across various programming languages.

The project provides a wrapper that manages the lifecycle of a Java-based execution engine, which performs the actual code synthesis using logic-less templates. To ensure reproducible results and avoid dependency conflicts on the host system, the tool supports version-controlled engine management and containerized execution environments.

Users can define project-specific generation rules through persistent configuration files, which automate repetitive tasks and maintain consistency across different development environments. The toolset covers the full scope of API artifact production, from initial server skeleton creation to the generation of integrated client software development kits.

## Tags

### Development Tools & Productivity

- [API Development Tools](https://awesome-repositories.com/f/development-tools-productivity/api-development-tools.md) — Automates the creation of boilerplate code and documentation to accelerate the development of services based on API definitions.
- [OpenAPI Client SDK Generators](https://awesome-repositories.com/f/development-tools-productivity/openapi-client-sdk-generators.md) — Transforms OpenAPI specification files into client libraries, server stubs, and documentation for various programming languages.
- [API Documentation Generators](https://awesome-repositories.com/f/development-tools-productivity/api-documentation-generators.md) — Compiles human-readable documentation from specification files to provide clear references for developers. ([source](https://github.com/openapitools/openapi-generator-cli#readme))
- [CLI Build Tools](https://awesome-repositories.com/f/development-tools-productivity/cli-build-tools.md) — Provides a command-line interface for managing generation tasks and ensuring consistent output across environments.
- [Logic-less Template Engines](https://awesome-repositories.com/f/development-tools-productivity/code-generation-templates/logic-less-template-engines.md) — Uses logic-less mustache templates to transform structured API specification data into language-specific source code.

### Data & Databases

- [Client Library Generation](https://awesome-repositories.com/f/data-databases/openapi-processors/client-library-generation.md) — Creates client libraries in various programming languages from specification files to simplify integration. ([source](https://github.com/openapitools/openapi-generator-cli#readme))
- [Server Stub Generation](https://awesome-repositories.com/f/data-databases/openapi-processors/server-stub-generation.md) — Produces boilerplate server code and API skeletons from specification definitions to accelerate backend development. ([source](https://github.com/openapitools/openapi-generator-cli#readme))

### DevOps & Infrastructure

- [Custom Artifact Generators](https://awesome-repositories.com/f/devops-infrastructure/deployment-platforms/deployment-artifact-specifications/build-artifact-deployment/custom-artifact-generators.md) — Automates the creation of client libraries, server stubs, and documentation directly from specification files. ([source](https://github.com/openapitools/openapi-generator-cli#readme))
- [Containerized Execution](https://awesome-repositories.com/f/devops-infrastructure/containerized-execution.md) — Supports containerized execution to run the generation process in isolated environments without local dependencies. ([source](https://github.com/openapitools/openapi-generator-cli#readme))
- [Containerized Runtimes](https://awesome-repositories.com/f/devops-infrastructure/execution-environments/code-execution-runtimes/containerized-runtimes.md) — Executes the generation process inside ephemeral container environments to ensure consistent dependency management.

### Web Development

- [API Client SDK Generators](https://awesome-repositories.com/f/web-development/api-client-sdk-generators.md) — Creates software development kits in various programming languages from specification files.

### Software Engineering & Architecture

- [OpenAPI Specification Management](https://awesome-repositories.com/f/software-engineering-architecture/openapi-specification-management.md) — Defines project-specific generation settings in a persistent configuration file to automate repetitive tasks.
- [Configuration-Driven Rules](https://awesome-repositories.com/f/software-engineering-architecture/project-management-governance/project-governance/standards-rule-enforcement/configuration-driven-rules.md) — Maps external specification files to output targets using persistent configuration files to automate project scaffolding.
