Skip to content

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.

  • 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.

Show help:

Terminal window
prompthub --help

List prompts:

Terminal window
prompthub prompt list --output table

Search prompts:

Terminal window
prompthub prompt search "review" --output json

Scan skills:

Terminal window
prompthub skill scan

Export a workspace:

Terminal window
prompthub workspace export
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
  • 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 --help to confirm current flags before running an example from an older release.