# 使用 Homebrew, apt, Nix, scoop 安装 cruft

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

## 安装

```sh
sudo av install brew:cruft
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cruft
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install cruft
```

  证据: Debian stable package indexes: cruft from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#cruft
```

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

### Windows

- Scoop (92%):

```sh
scoop install extras/cruft
```

  证据: Scoop official bucket manifest trees: bucket/cruft.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:cruft
- **软件包管理器:** Homebrew
- **版本:** 2.16.0
- **来源摘要:** Utility that creates projects from templates and maintains the cruft afterwards
- **主页:** <https://cruft.github.io/cruft/>
- **仓库:** <https://github.com/cruft/cruft>
- **最后更新:** 2026-07-25T09:53:44Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cruft (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.16.0
## 项目历史与用法

cruft is a Python command-line tool for creating projects from Cookiecutter templates and keeping the generated boilerplate synchronized with later template changes. It addresses a common packaging problem: generated project skeletons drift after the first copy.

### 项目历史

The project was created to balance the convenience of project generators with the maintenance burden they create. Its documentation explains that cruft uses Cookiecutter as the template expansion engine, then records template metadata in `.cruft.json` so a project can later be checked, diffed, linked, or updated.

The Git tag history starts at 2.0.0 in 2020 and reaches 2.16.0 in 2024. The repository and documentation remain centered on Python packaging workflows, with badges for PyPI, conda-forge, tests, and downloads.

### 采用历史

cruft's adoption is strongest among teams that maintain many repositories from the same Cookiecutter template. Its documentation includes a GitHub Actions workflow that checks for template updates and opens pull requests, indicating the tool's role in repository-fleet maintenance rather than one-off project creation.

### 使用方式

Common commands include `cruft create` for generating a project, `cruft update` for pulling template changes, `cruft check` for CI drift detection, `cruft link` for attaching an existing Cookiecutter-generated project to its template, and `cruft diff` for inspecting changes.

cruft stores template URL, commit, answers, and skip settings in `.cruft.json`; it can also read skip configuration from `tool.cruft` in `pyproject.toml`.

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

cruft matters to package maintainers because it treats boilerplate as an updatable dependency. That makes template updates closer to dependency upgrades: visible in diffs, enforceable in CI, and distributable through Python package managers and Homebrew.

### 时间线

- 2020: 2.0.0 public tag
- 2023: 2.15.0 release
- 2024: 2.16.0 release

### Related projects

- cruft is built around Cookiecutter compatibility and commonly appears with Python packaging, PyPI, conda-forge, Poetry, pipenv, and GitHub Actions workflows.

### 来源

- <https://github.com/cruft/cruft#readme>
- <https://cruft.github.io/cruft>
- <https://github.com/cruft/cruft/tags>
- <https://github.com/cruft/cruft/releases>
- <https://formulae.brew.sh/formula/cruft>


## 安全说明

没有找到 cruft 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .cruft.json, pyproject.toml
## 其他软件包管理器记录

- Debian apt - cruft - 0.9.71: normalized package name match | Debian stable package indexes: cruft from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional package | https://salsa.debian.org/pkg-security-team/cruft-ng
- Nix - cruft: normalized package name match | nixpkgs package indexes: pkgs/by-name/cr/cruft/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cruft - 0.9.61build1: normalized package name match | Ubuntu 24.04 LTS package indexes: cruft from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | transitional package | https://github.com/a-detiste/cruft-ng/
- Scoop - extras/cruft: normalized package name match | Scoop official bucket manifest trees: bucket/cruft.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
