PROMPT.LIST
PROMPT.LIST
- Group
- Prompt registry
- Complexity
- O(N) where N is the number of templates
- Arity
- 1 (exactly, counting the command name)
- Flags
- read-only, fast
- HotKV Cloud
- Performance and Scale
- On-Premise
- requires the prompt-registry license feature
The prompt registry stores versioned prompt templates by name, with one version marked active, so you can roll a prompt forward or back without deploying code. PROMPT.LIST returns the names of all templates on the server you
are connected to, in no particular order. In a cluster, each node lists only
the templates it holds.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Always | Array of bulk strings (empty if there are none) | Same |
Errors:
ERR wrong number of arguments for 'prompt.list' commandif the argument count is wrong.NOLICENSE prompt-registry requires a HotKV license. Contact sales@hotkv.comif your license does not include theprompt-registryfeature.
Examples
Section titled “Examples”127.0.0.1:6379> PROMPT.LIST1) "support-agent"2) "summarizer"Compatibility
Section titled “Compatibility”HotKV-only command. Redis and Valkey have no equivalent.
See also
Section titled “See also”PROMPT.PUT, PROMPT.GET, PROMPT.LATEST, PROMPT.SETACTIVE, PROMPT.VERSIONS, PROMPT.DROP, AI features guide
Was this page helpful?
Thanks for the feedback.