What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.

COMMAND LIST

Returns a list of command names.

Usage
COMMAND LIST [FILTERBY filterby]
Complexity
O(N) where N is the total number of commands
Since
7.0.0
ACL Categories
@connection, @slow
Command flags
LOADING, STALE, SENTINEL

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.

Replies

RESP2

Array reply: a list of command names.

RESP3

Array reply: a list of command names.