# 使用 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
- **版本:** 1.6.2
- **来源摘要:** Generate typed CustomResources from a Kubernetes CustomResourceDefinition
- **主页:** <https://github.com/pulumi/crd2pulumi>
- **仓库:** <https://github.com/pulumi/crd2pulumi>
- **最后更新:** 2026-07-27T22:04:05+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- crd2pulumi (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
