# 使用 Homebrew, Nix 安装 shadcn

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

## 安装

```sh
sudo av install brew:shadcn
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install shadcn
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#shadcn
```

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

## 软件包事实

- **软件包键:** brew:shadcn
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/shadcn>
- **版本:** 4.16.1
- **来源摘要:** CLI for adding components to your project
- **主页:** <https://ui.shadcn.com>
- **上游文档:** <https://ui.shadcn.com>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/shadcn/-/shadcn-4.16.1.tgz>
- **最后更新:** 2026-08-01T15:49:50Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- shadcn (cli)
- shadcn (别名)

## 依赖

- node

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.16.1
- 管理器更新时间: 2026-08-01
- 本地数据: OK
- 上游仓库: https://ui.shadcn.com
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: components.json
- Windows: components.json
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** shadcn
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

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


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [rustywind](https://pkg.so/zh-hans/brew/rustywind/) - Shares pkgdb curated category or tags: cli, developer-tools, frontend, tailwind-css.
- [vite](https://pkg.so/zh-hans/brew/vite/) - Shares pkgdb curated category or tags: cli, developer-tools, frontend.
- [tailwindcss](https://pkg.so/zh-hans/brew/tailwindcss/) - Shares pkgdb curated category or tags: cli, developer-tools, frontend.
- [webpack](https://pkg.so/zh-hans/brew/webpack/) - Shares pkgdb curated category or tags: cli, developer-tools, frontend.
- [stylelint](https://pkg.so/zh-hans/brew/stylelint/) - Shares pkgdb curated category or tags: cli, developer-tools, frontend.
- [vite-plus](https://pkg.so/zh-hans/brew/vite-plus/) - Shares pkgdb curated category or tags: cli, developer-tools, frontend.
- [bower](https://pkg.so/zh-hans/brew/bower/) - Shares pkgdb curated category or tags: cli, developer-tools, frontend.
- [jhipster](https://pkg.so/zh-hans/brew/jhipster/) - Shares pkgdb curated category or tags: cli, developer-tools, react.
- [shadcn](https://pkg.so/zh-hans/npm/shadcn/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, components, developer, developer-tools, frontend.
- [flowbite-react](https://pkg.so/zh-hans/npm/flowbite-react/) - Local package facts share a topical domain. Shared terms: cli, components, css, design, design-system.
- [even-toolkit](https://pkg.so/zh-hans/npm/even-toolkit/) - Local package facts share a topical domain. Shared terms: cli, components, design, design-system, developer.
- [shadcn](https://pkg.so/zh-hans/npm/shadcn/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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


## 来源

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