COMMAND LIST

Syntax
COMMAND LIST [FILTERBY <MODULE module-name | ACLCAT category |
  PATTERN pattern>]
Available since:
7.0.0
Time complexity:
O(N) where N is the total number of Redis commands
ACL categories:
@slow, @connection,

Return an array of the server's command names.

You can use the optional FILTERBY modifier to apply one of the following filters:

  • MODULE module-name: get the commands that belong to the module specified by module-name.
  • ACLCAT category: get the commands in the ACL category specified by category.
  • PATTERN pattern: get the commands that match the given glob-like pattern.

RESP2/RESP3 Reply

Array reply: a list of command names.
Rate this page