# 使用 Homebrew, Nix, winget 安装 promptfoo

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

## 安装

```sh
sudo av install brew:promptfoo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install promptfoo
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#promptfoo
```

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

### Windows

- winget (92%):

```sh
winget install --id Microsoft.Promptflow -e
```

  证据: Windows Package Manager source index: Microsoft.Promptflow from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:promptfoo
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/promptfoo>
- **版本:** 0.121.20
- **来源摘要:** Test your LLM app locally
- **主页:** <https://promptfoo.dev/>
- **上游文档:** <https://promptfoo.dev/>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/promptfoo/-/promptfoo-0.121.20.tgz>
- **最后更新:** 2026-08-01T07:56:23Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- pf (cli)
- promptfoo (cli)
- pf (别名)
- promptfoo (别名)

## 依赖

- node

## 构建依赖

- cmake
- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.121.20
- 管理器更新时间: 2026-08-01
- 本地数据: OK
- 上游仓库: https://promptfoo.dev/
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

没有找到 promptfoo 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

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.


## Configuration files

- Unix: promptfooconfig.yaml

## Credential files

- Unix: .env
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** promptfoo
- **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 - promptfoo: normalized package name match | nixpkgs package indexes: pkgs/by-name/pr/promptfoo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- winget - Microsoft.Promptflow: installed executable or alias match | Windows Package Manager source index: Microsoft.Promptflow from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [MCP tool packages](https://pkg.so/zh-hans/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [AI and agent packages](https://pkg.so/zh-hans/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow 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.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [ollama](https://pkg.so/zh-hans/brew/ollama/) - Shares pkgdb curated category or tags: ai, cli, llm, model-tools.
- [llmfit](https://pkg.so/zh-hans/brew/llmfit/) - Shares pkgdb curated category or tags: ai, cli, llm, model-tools.
- [ramalama](https://pkg.so/zh-hans/brew/ramalama/) - Shares pkgdb curated category or tags: ai, cli, llm, model-tools.
- [localai](https://pkg.so/zh-hans/brew/localai/) - Shares pkgdb curated category or tags: ai, cli, llm, model-tools.
- [oterm](https://pkg.so/zh-hans/brew/oterm/) - Shares pkgdb curated category or tags: ai, cli, llm, model-tools.
- [gollama](https://pkg.so/zh-hans/brew/gollama/) - Shares pkgdb curated category or tags: ai, cli, llm, model-tools.
- [kubectl-ai](https://pkg.so/zh-hans/brew/kubectl-ai/) - Shares pkgdb curated category or tags: ai, cli, llm, model-tools.
- [mods](https://pkg.so/zh-hans/brew/mods/) - Shares pkgdb curated category or tags: ai, cli, llm, model-tools.
- [promptfoo](https://pkg.so/zh-hans/npm/promptfoo/) - Same normalized package name appears in another local ecosystem. Shared terms: ai, cli, llm, promptfoo, testing.
- [node-llama-cpp](https://pkg.so/zh-hans/npm/node-llama-cpp/) - Both packages touch the same language runtime or ecosystem. Shared terms: ai, cli, llm, locally, model.
- [promptfoo](https://pkg.so/zh-hans/npm/promptfoo/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/promptfoo.yml](https://github.com/mxcl/pkgdb/blob/main/combined/promptfoo.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
