COMMAND LIST

Since 1.1.0Server

Syntax

COMMAND LIST [FILTERBY MODULE module | ACLCAT category | PATTERN pattern]

Returns the names of every command, or of those matching a FILTERBY:

  • PATTERN pattern: names matching a glob-style pattern. Subcommands are listed as container|subcommand, so client* gives client and each client|....
  • ACLCAT category: the commands in an ACL category, such as hyperloglog.
  • MODULE module: the commands of a built-in module, by the name MODULE LIST gives it: search, ReJSON, timeseries or vectorset. KiviDB loads no other modules; a name that is not one of these gives an empty array.

Names are in lower case. The list is what COMMAND COUNT counts, with subcommands too.

Examples

> COMMAND LIST FILTERBY ACLCAT hyperloglog
1) "pfadd"
2) "pfcount"
3) "pfmerge"
4) "pfdebug"
5) "pfselftest"
> COMMAND LIST FILTERBY PATTERN client|g*
1) "client|getname"
2) "client|getredir"
> COMMAND LIST FILTERBY MODULE ReJSON
 1) "json.set"
 2) "json.get"
 3) "json.mget"
...
> COMMAND LIST FILTERBY MODULE json
(empty array)