# 使用 Homebrew, apt, dnf, pacman 安装 clitest

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

## 安装

```sh
sudo av install brew:clitest
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install clitest
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install clitest
```

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

- dnf (92%):

```sh
sudo dnf install clitest
```

  证据: Fedora Rawhide package metadata: clitest from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S clitest
```

  证据: Arch Linux sync databases: clitest from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:clitest
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/clitest>
- **版本:** 0.5.0
- **来源摘要:** Command-Line Tester
- **主页:** <https://github.com/aureliojargas/clitest>
- **仓库:** <https://github.com/aureliojargas/clitest>
- **许可证:** MIT
- **源码归档:** <https://github.com/aureliojargas/clitest/archive/refs/tags/0.5.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- clitest (cli)
- clitest (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.5.0
- 本地数据: OK
- 上游仓库: https://github.com/aureliojargas/clitest
- 检测到的最新版本: 0.5.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

clitest is a portable POSIX shell script for testing command-line sessions by comparing commands and expected output written in a terminal-like transcript.

### 项目历史

clitest was published by Aurelio Jargas as a small single-script command-line testing tool. The upstream README frames it as applying the doctest idea to Unix command lines: documentation-like shell sessions can become executable tests.

### 采用历史

The project is intentionally small, but it reached several developer-oriented package channels: the batch input records Homebrew, Debian, Fedora, Arch, and Ubuntu packages. The README also documents a Docker image and points to funcoeszz test files as a larger real-world suite using the clitest format.

### 使用方式

Users write a text or Markdown file containing prompts, commands, and expected output, then run `clitest FILE` to execute and check those examples. The README documents prefix handling for indented Markdown code blocks and inline expected-output markers such as `#=>`.

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

clitest matters to package nerds as a tiny, portable test runner for command-line examples. It is the sort of tool that can smoke-test package documentation, man-page examples, and shell snippets without bringing in a language-specific test framework.

### 时间线

- 2013: GitHub repository created and early 0.1.0 tag committed.
- 2023: Version 0.5.0 tag committed.
- 2023: Upstream README documents direct script installation, Docker use, Markdown extraction, and real-world clitest suites.

### Related projects

- Related projects and concepts include Python doctest, doctest.fish for fish shell users, shellspec-style shell testing tools, and command-documentation test suites such as funcoeszz's clitest files.

### 来源

- <https://github.com/aureliojargas/clitest#readme>
- <https://github.com/aureliojargas/clitest/releases>


## 安全说明

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:** clitest
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - clitest - 0.5.0-1: normalized package name match | Debian stable package indexes: clitest from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | portable testing tool for Unix command lines | https://github.com/aureliojargas/clitest
- Ubuntu apt - clitest - 0.4.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: clitest from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | portable testing tool for Unix command lines | https://github.com/aureliojargas/clitest
- dnf - clitest - 0.5.0-10.fc45: normalized package name match | Fedora Rawhide package metadata: clitest from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Command Line Tester | https://github.com/aureliojargas/clitest
- pacman - clitest - 0.5.0-2: normalized package name match | Arch Linux sync databases: clitest from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Perform automatic testing in Unix command lines | https://github.com/aureliojargas/clitest


## 相关链接

- [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.
- [powershell](https://pkg.so/zh-hans/brew/powershell/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, shell.
- [parallel](https://pkg.so/zh-hans/brew/parallel/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, shell.
- [expect](https://pkg.so/zh-hans/brew/expect/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, testing.
- [tox](https://pkg.so/zh-hans/brew/tox/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, testing.
- [entr](https://pkg.so/zh-hans/brew/entr/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, testing.
- [retry](https://pkg.so/zh-hans/brew/retry/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, shell.
- [shellspec](https://pkg.so/zh-hans/brew/shellspec/) - Shares pkgdb curated category or tags: cli, developer-tools, shell, testing.
- [molecule](https://pkg.so/zh-hans/brew/molecule/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, testing.
- [shelltestrunner](https://pkg.so/zh-hans/brew/shelltestrunner/) - Local package facts share a topical domain. Shared terms: cli, command-line, developer, developer-tools, line.
- [atf](https://pkg.so/zh-hans/brew/atf/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, shell, testing.

## Combined YAML source

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