lhc prompts
Manage reusable prompt templates. Prompts are user-owned and optionally shareable.
Commands
prompts list
List all prompts owned by the current user:
lhc prompts list [--output table|json|yaml]
prompts search [query]
Search prompts by command, title, or content:
lhc prompts search summar
lhc prompts search summar --limit 50
lhc prompts search --tag RED # every red prompt, across all pages
--tag restricts results to prompts tagged with that color (repeatable, OR-combined; valid
colors: RED, YELLOW, GREEN, BLUE, PURPLE). Tags are per user and assigned in the UI —
the CLI only filters by them. The query is optional when --tag is given, but at least one of
the two is required.
prompts get <command>
Get a prompt by its command identifier:
lhc prompts get <command>
Example:
lhc prompts get summarize
prompts create
Create a new prompt:
lhc prompts create --command <id> --title <title> --content <body>
| Flag | Required | Description |
|---|---|---|
--command | yes | Unique command identifier (slug, e.g. summarize) |
--title | yes | Human-readable title shown in the UI |
--content | yes | Prompt template body (supports {{variable}} placeholders) |
Example:
lhc prompts create \
--command summarize \
--title "Summarize Text" \
--content "Please summarize the following text concisely: {{text}}"
prompts update <command>
Update the title and content of an existing prompt:
lhc prompts update <command> --title <title> --content <body>
| Flag | Required | Description |
|---|---|---|
--title | yes | New title |
--content | yes | New prompt body |
Example:
lhc prompts update summarize \
--title "Summarize (short)" \
--content "Summarize in one sentence: {{text}}"
prompts delete <command>
Delete a prompt by command identifier:
lhc prompts delete <command>
prompts statistics
Show prompt usage statistics for the current user:
lhc prompts statistics
prompts share <command>
Share a prompt with a user or group. Exactly one of --user or --group is required:
lhc prompts share /summarize --user 3e7c3d4f-16ff-4914-8250-bbe693ab7224
lhc prompts share /summarize --group 1 --permission write
| Flag | Default | Description |
|---|---|---|
--user | — | Target user ID (UUID) |
--group | — | Target group ID (integer) |
--permission | read | Permission level: read, write, owner |
prompts unshare <command>
Remove a share from a prompt:
lhc prompts unshare /summarize --user 3e7c3d4f-16ff-4914-8250-bbe693ab7224
lhc prompts unshare /summarize --group 1
prompts shared-by-me
List prompts shared by the current user:
lhc prompts shared-by-me
prompts shared-with-me
List prompts shared with the current user:
lhc prompts shared-with-me