Skip to main content

Command-line options

If you're looking to customize your usage, there are a wide set of promptfoo eval parameters at your disposal.

OptionDescription
-p, --prompts <paths...>Paths to prompt files, directory, or glob
-r, --providers <name or path...>One of: openai:chat, openai:completion, openai:model-name, localai:chat:model-name, localai:completion:model-name. See API providers
-o, --output <path>Path to output file (csv, json, yaml, html)
-t, --tests <path>Path to external test file
-c, --config <path>Path to configuration file. promptfooconfig.js/json/yaml is automatically loaded if present
--graderProvider that will conduct the evaluation, if you are using LLM to grade your output
--no-cacheDisable cache
--no-tableDisable CLI table output
--no-writeDo not write the latest config to disk (used for web viewer and sharing)
--prompt-prefix <path>This prefix is prepended to every prompt
--prompt-suffix <path>This suffix is append to every prompt
--shareAutomatically create a share link
--table-cell-max-length <number>Truncate console table cells to this length
--verboseShow debug logs
--viewOpen local web viewer
-j, --max-concurrency <number>Maximum number of concurrent API calls