# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 0.5.0
- **来源摘要:** Command-Line Tester
- **主页:** <https://github.com/aureliojargas/clitest>
- **仓库:** <https://github.com/aureliojargas/clitest>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- clitest (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


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