How to install promptfoo/promptfoo. Official installation instructions. Project installation guide. Framework or library installation. Build installation instructions. How to setup and install from GitHub. Installation steps and setup instructions. Official docs and installation instructions GitHub.
promptfoo/promptfoo Installation Guide
How to install promptfoo/promptfoo. Official project installation instructions and setup guide.
⚡
Automated Install (Recommended)
Quick installation instructions for promptfoo/promptfoo. This is the fastest way to complete project installation and setup.
Install via curl
curl -fsSL https://hexmos.com/ipm-install | bash &&
ipm i promptfoo/promptfooor
Install via npx
npx @hexmos/ipm i promptfoo/promptfooPrerequisites
Node.js
runtimenpm
package managerPython
runtimepip
package managergit
version controlHomebrew
package managerVersion: >=3.0.0
Manual Installation Methods
Manual installation instructions. How to install from GitHub source.
NPM
npm install -g promptfooHomebrew
brew install promptfooPip
pip install promptfooNpx (without installation)
npx promptfoo@latestSource
git clone https://github.com/promptfoo/promptfoo
cd promptfoo
npm install -g .Post Installation Steps
- export OPENAI_API_KEY=sk-abc123
- promptfoo init --example getting-started
- cd getting-started
- promptfoo eval
- promptfoo view
