# 使用 Homebrew, Nix 安装 crd2pulumi

查看 crd2pulumi 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:crd2pulumi
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install crd2pulumi
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#crd2pulumi
```

  证据: nixpkgs package indexes: pkgs/by-name/cr/crd2pulumi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:crd2pulumi
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/crd2pulumi>
- **版本:** 1.6.2
- **来源摘要:** Generate typed CustomResources from a Kubernetes CustomResourceDefinition
- **主页:** <https://github.com/pulumi/crd2pulumi>
- **仓库:** <https://github.com/pulumi/crd2pulumi>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/pulumi/crd2pulumi/archive/refs/tags/v1.6.2.tar.gz>
- **最后更新:** 2026-07-27T22:04:05+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- crd2pulumi (cli)
- crd2pulumi (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.6.2
- 管理器更新时间: 2026-07-27
- 本地数据: OK
- 上游仓库: https://github.com/pulumi/crd2pulumi
- 检测到的最新版本: v1.6.2 (当前)
## 项目历史与用法

crd2pulumi is Pulumi's CLI for generating strongly typed Pulumi CustomResource classes from Kubernetes CustomResourceDefinition YAML.

### 项目历史

Pulumi created crd2pulumi in 2020 to address a gap in its Kubernetes support: CustomResources were usable, but custom schemas meant users did not get strong typing, IDE checks, or autocomplete for popular CRDs.

The README positions the tool around real-world CRD-heavy projects such as cert-manager and Istio, whose schemas can run to thousands of lines. The tool generates language-specific Pulumi bindings for .NET, Go, Java, Node.js, and Python.

### 采用历史

The official installation section points users to repository-hosted binary releases and Pulumi's Homebrew tap. Supplied package facts also show Nix and Homebrew packaging, matching the tool's role in local infrastructure-development workflows.

### 使用方式

Users pass one or more CRD YAML files or URLs to crd2pulumi and select target languages or output paths. The generated packages let Pulumi programs instantiate custom Kubernetes resources with typed arguments instead of untyped object maps.

### 为什么软件包爱好者会关心

crd2pulumi is packaging glue between Kubernetes API extension, language package generation, and Pulumi IaC projects. It matters because it turns CRD YAML, usually shipped by Kubernetes projects, into language-native SDK surfaces.

### 时间线

- 2020: pulumi/crd2pulumi repository created.
- 2020: v1.0.3 release published.
- 2026: v1.6.2 release published.

### Related projects

- The README ties crd2pulumi to Pulumi Kubernetes CustomResources and cites cert-manager and Istio as examples of complex CRD producers.

### 来源

- <https://github.com/pulumi/crd2pulumi>
- <https://github.com/pulumi/crd2pulumi#readme>
- <https://github.com/pulumi/crd2pulumi/releases/tag/v1.0.3>
- <https://github.com/pulumi/crd2pulumi/releases/tag/v1.6.2>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** crd2pulumi
- **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:** head, stable

## 其他软件包管理器记录

- Nix - crd2pulumi: normalized package name match | nixpkgs package indexes: pkgs/by-name/cr/crd2pulumi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [opentofu](https://pkg.so/zh-hans/brew/opentofu/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, infrastructure-as-code.
- [pulumi](https://pkg.so/zh-hans/brew/pulumi/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, infrastructure-as-code.
- [aws-cdk](https://pkg.so/zh-hans/brew/aws-cdk/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, infrastructure-as-code.
- [rain](https://pkg.so/zh-hans/brew/rain/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, infrastructure-as-code.
- [aztfexport](https://pkg.so/zh-hans/brew/aztfexport/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, infrastructure-as-code.
- [otterdog](https://pkg.so/zh-hans/brew/otterdog/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, infrastructure-as-code.
- [sceptre](https://pkg.so/zh-hans/brew/sceptre/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, infrastructure-as-code.
- [driftctl](https://pkg.so/zh-hans/brew/driftctl/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, infrastructure-as-code.
- [amplify-graphql-types-generator](https://pkg.so/zh-hans/npm/amplify-graphql-types-generator/) - Local package facts share a topical domain. Shared terms: cli, cloud, cloud-infrastructure, code, code-generation.

## Combined YAML source

View the package source record on GitHub. [combined/crd2pulumi.yml](https://github.com/mxcl/pkgdb/blob/main/combined/crd2pulumi.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
