macOS
brew install shadcnlocal Homebrew formula metadata
安装
brew install shadcnlocal Homebrew formula metadata
nix profile install nixpkgs#shadcnnixpkgs package indexes · pkgs/by-name/sh/shadcn/package.nix · 来源: api.github.com
概览
CLI for adding components to your project
历史
shadcn is the official command-line tooling for shadcn/ui, an open-code component system. Rather than installing a conventional sealed component library, it adds customizable component source and supporting dependencies directly to an application.
The shadcn-ui/ui repository began in 2023 as an open-code component collection. The project subsequently developed a dedicated `shadcn` package for initialization, registry resolution, component installation, migrations, documentation lookup, and project inspection.
The CLI became the package-managed entry point for shadcn/ui's copy-and-customize workflow. Official changelog milestones include a rewritten CLI in June 2023, the `init` workflow in April 2024, CLI 3.0 and MCP support in August 2025, and CLI v4 in March 2026.
Users run `shadcn init` to configure a project and `shadcn add` to copy registry components into it. The optional project-root `components.json` records style, framework-related choices, aliases, registry definitions, and destination paths.
shadcn is notable because it uses a package-manager-delivered CLI without treating the resulting UI as an opaque dependency: it resolves registry items and writes editable source into the consumer's project. This source-distribution model made `components.json`, registries, and repeatable CLI invocations central to the ecosystem.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
components.jsoncomponents.jsonCredential-bearing paths to review before unattended agent runs.
.env.local.env.local可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
shadcn | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:shadcn |
|---|---|
| 版本 | 4.21.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/shadcn |
| 主页 | https://ui.shadcn.com |
| 上游文档 | https://ui.shadcn.com |
| 许可证 | MIT |
| 源码归档 | https://registry.npmjs.org/shadcn/-/shadcn-4.19.0.tgz |
| 最后更新 | 2026-09-13T09:37:40Z |
| Pulse | updated |
| 依赖 | node |
| 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 | 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
shadcn
nix profile install nixpkgs#shadcn来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.