# 使用 Homebrew, Nix 安装 chalk-cli

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

## 安装

```sh
sudo av install brew:chalk-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install chalk-cli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#chalk
```

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

## 软件包事实

- **软件包键:** brew:chalk-cli
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/chalk-cli>
- **版本:** 6.0.0
- **来源摘要:** Terminal string styling done right
- **主页:** <https://github.com/chalk/chalk-cli>
- **仓库:** <https://github.com/chalk/chalk-cli>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/chalk-cli/-/chalk-cli-6.0.0.tgz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- chalk (cli)
- chalk (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 6.0.0
- 本地数据: OK
- 上游仓库: https://github.com/chalk/chalk-cli
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

chalk-cli is the command-line wrapper for Chalk-style terminal text formatting. It lets shell users apply ANSI color and style formatting to arguments or standard input without writing a Node.js script.

### 项目历史

The GitHub repository and npm package were created in July 2015. The README presents it as terminal string styling for the command line and points users to the main chalk package for supported styles.

GitHub releases show a v5 line in 2021 and 2023, followed by v6.0.0 in 2025.

### 采用历史

The package is published on npm as chalk-cli, and the Homebrew input identifies a Homebrew formula plus a Nix package mapping. Its adoption mostly follows the larger Chalk ecosystem rather than a separate application ecosystem.

### 使用方式

The CLI accepts one or more styles plus a string, or it can read piped input with --stdin. It also supports style templates and a demo mode for showing available Chalk styles.

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

chalk-cli is a small but tidy example of a JavaScript library becoming a Unix-style command. It matters to package nerds because it turns a popular Node terminal-formatting API into a composable shell filter.

### 时间线

- 2015: GitHub repository and npm package created.
- 2021: v5.0.0 release published on GitHub.
- 2023: v5.0.1 release published.
- 2025: v6.0.0 release published.

### Related projects

- chalk/chalk is the API package that chalk-cli wraps and the README links for supported styles.

### 来源

- <https://github.com/chalk/chalk-cli#readme>
- <https://github.com/chalk/chalk-cli/releases>
- <https://api.github.com/repos/chalk/chalk-cli>
- <https://registry.npmjs.org/chalk-cli>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** chalk-cli
- **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 - chalk: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/ch/chalk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [pnpm](https://pkg.so/zh-hans/brew/pnpm/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [yarn](https://pkg.so/zh-hans/brew/yarn/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [fnm](https://pkg.so/zh-hans/brew/fnm/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [fx](https://pkg.so/zh-hans/brew/fx/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, terminal.
- [volta](https://pkg.so/zh-hans/brew/volta/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [zx](https://pkg.so/zh-hans/brew/zx/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [pnpm@9](https://pkg.so/zh-hans/brew/pnpm-9/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [pnpm@10](https://pkg.so/zh-hans/brew/pnpm-10/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [gulp-cli](https://pkg.so/zh-hans/brew/gulp-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, javascript, node.
- [ncc](https://pkg.so/zh-hans/brew/ncc/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, javascript, node.
- [tty-table](https://pkg.so/zh-hans/npm/tty-table/) - Both packages touch the same language runtime or ecosystem. Shared terms: ansi, chalk, cli, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/chalk-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/chalk-cli.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
