CLI Guide
The PromptOps CLI lets you manage prompts from your terminal. Ideal for local development, CI/CD pipelines, and scripting.
promptops init
Initialize PromptOps in the current directory. Creates config file and prompts directory.
promptops register <file> --name <name>
Register a prompt from a file. Supports .md, .txt, and .prompt files.
promptops optimize <name> --dataset <path>
Run optimization on a registered prompt using a local dataset (JSONL format).
promptops benchmark <name> --models <list>
Benchmark a prompt across models. Comma-separated model names.
promptops deploy <name> --strategy canary
Deploy a prompt to production with the specified strategy.
promptops diff <v1> <v2>
Show the diff between two prompt versions.
promptops rollback <name>
Roll back to the previous version of a prompt.