Skip to main content
Version: 0.0.41

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 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>
FlagRequiredDescription
--commandyesUnique command identifier (slug, e.g. summarize)
--titleyesHuman-readable title shown in the UI
--contentyesPrompt 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>
FlagRequiredDescription
--titleyesNew title
--contentyesNew 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 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