macOS
brew install swagger-codegenlocal Homebrew formula metadata
sudo port install swagger-codegenMacPorts ports tree · devel/swagger-codegen/Portfile · 来源: api.github.com
安装
brew install swagger-codegenlocal Homebrew formula metadata
sudo port install swagger-codegenMacPorts ports tree · devel/swagger-codegen/Portfile · 来源: api.github.com
nix profile install nixpkgs#swagger-codegennixpkgs package indexes · pkgs/by-name/sw/swagger-codegen/package.nix · 来源: api.github.com
概览
Generate clients, server stubs, and docs from an OpenAPI spec
历史
Swagger Codegen is the Swagger/OpenAPI project's command-line code generator for API clients, server stubs, and documentation. The Homebrew `swagger-codegen` formula tracks the modern 3.x line, which adds OpenAPI 3.0 support while sharing the long-running upstream repository.
The swagger-api/swagger-codegen repository was created on GitHub in July 2011. Official Swagger documentation describes Swagger Codegen as a project that generates API client libraries, server stubs, and documentation automatically from an OpenAPI Description.
Swagger Codegen became widely packaged because it is a single Java CLI that can generate code for many languages and frameworks. The official README lists client generators for languages including Java, Go, Python, Ruby, PHP, Swift, TypeScript, and many others, plus server stubs and documentation outputs.
The common CLI pattern is to run the codegen jar with `generate`, pass an input spec with `-i`, select a target language with `-l`, and choose an output directory with `-o`. Official docs also describe querying generator capabilities and integrating generation into Maven, Gradle, Docker, GitHub, and CI workflows.
For package-manager users, Swagger Codegen is important because it converts API descriptions into language-specific source trees without requiring each language ecosystem to maintain its own generator. It is also a classic example of a large Java CLI distributed through system package managers, Maven artifacts, Docker, and release jars.
安全态势
没有找到 swagger-codegen 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
swagger-codegen | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/swagger-api/swagger-codegen
安装元数据
| 软件包键 | brew:swagger-codegen |
|---|---|
| 版本 | 3.0.81 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/swagger-codegen |
| 主页 | https://swagger.io/tools/swagger-codegen/ |
| 仓库 | https://github.com/swagger-api/swagger-codegen |
| 上游文档 | https://github.com/swagger-api/swagger-codegen#readme |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/swagger-api/swagger-codegen/archive/refs/tags/v3.0.81.tar.gz |
| 最后更新 | 2026-05-18T14:26:15Z |
| Pulse | updated |
| 依赖 | openjdk |
| 构建依赖 | maven |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | swagger-codegen |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
swagger-codegen
nix profile install nixpkgs#swagger-codegenswagger-codegen
sudo port install swagger-codegen来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.