# 使用 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
- **版本:** 6.0.0
- **来源摘要:** Terminal string styling done right
- **主页:** <https://github.com/chalk/chalk-cli>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- chalk (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


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