Skip to content
GitHub

Prompd CLI

The command-line toolkit for compiling, running, and publishing composable AI prompts. Automate everything from local development to CI/CD.

Terminal window
npm install -g @prompd/cli

The Node.js CLI is the most feature-complete implementation with full MCP integration, workflow support (.pdflow), and all registry operations.

Terminal window
pip install prompd

The Python CLI supports core .prmd operations and asset extraction. Workflow (.pdflow) support is coming soon.

Terminal window
npm install -g @prompd/cli
Terminal window
prompd init my-prompt
Terminal window
prompd compile my-prompt.prmd
Terminal window
prompd run my-prompt.prmd --provider openai

Resolve inheritance, inject context, substitute parameters, and output provider-ready prompts.

Terminal window
prompd compile summarizer.prmd --output compiled.json

Compile and execute a .prmd file against a configured provider in a single step.

Terminal window
prompd run summarizer.prmd --provider openai

Check .prmd files and packages for syntax errors, missing fields, and schema violations.

Terminal window
prompd validate my-prompt.prmd

Install a package from the registry with automatic dependency resolution.

Terminal window
prompd install @acme/summarizer

Search the registry by keyword, namespace, or package type.

Terminal window
prompd search summarizer

Pack and publish your project to the Prompd registry for others to use.

Terminal window
prompd publish --access public

Configure API keys and defaults for OpenAI, Anthropic, and other LLM providers. Switch providers per-prompt or per-project.

Terminal window
prompd config provider add openai --key sk-...

Store secrets in .env files. The CLI automatically loads project-level and global .env on every command.

Project-level configuration for default provider, output format, compilation flags, and registry endpoint.

provider: openai
output: markdown
registry: https://registry.prompdhub.ai

Compile a .prmd file that inherits from a registry package and includes local context files.

Terminal window
prompd compile summarizer.prmd --output compiled.json

Execute a prompt with custom parameter values passed from the command line.

Terminal window
prompd run summarizer.prmd -p topic="Kubernetes" -p audience="beginners"

Bundle your project into a .pdpkg archive and publish it to the registry.

Terminal window
prompd publish --access public