Command Line CLI
The CLI is intended for people who are already comfortable in a terminal. Prefer the desktop app for everyday use; use the CLI for bulk operations, backup, migration, or automation.
The desktop package does not install the prompthub command automatically. Build and install the CLI from the repository before using the examples below.
Good Uses
Section titled “Good Uses”- List and search prompts in bulk.
- Export a PromptHub workspace for backup or inspection.
- Scan local skills and rule files.
- Automate a repeatable migration or validation task.
- Produce bounded JSON output for another script.
The available resource commands cover prompts, folders, Agents, rules, skills, MCP entries, plugins, AI configuration, and workspace import/export. Run --help at the root or resource level for the current command set instead of relying on a copied static list.
Common Examples
Section titled “Common Examples”Show help:
prompthub --helpList prompts:
prompthub prompt list --output tableSearch prompts:
prompthub prompt search "review" --output jsonScan skills:
prompthub skill scanExport a workspace:
prompthub workspace exportCommon Options
Section titled “Common Options”| Option | Purpose |
|---|---|
--output json |
Structured output for another program |
--output table |
Readable terminal output |
--data-dir <path> |
Use an explicit application data directory |
--version |
Print the CLI version |
Safety Advice
Section titled “Safety Advice”- Test destructive or bulk commands on an exported copy first.
- Export a backup before a large import or restore.
- Pass secrets through an approved local environment boundary, not source-controlled scripts.
- Use
--helpto confirm current flags before running an example from an older release.