Skip to content

COMMAND

Returns information about registered server commands.

COMMAND [subcommand [arguments]]

Returns information about all registered commands.

COMMAND

Returns information about one or more specific commands.

COMMAND INFO [command ...]
ParameterTypeRequiredDescription
commandstringNoOne or more command names to query (returns all if omitted)

Returns the total number of registered commands.

COMMAND COUNT

Returns command documentation (not yet implemented).

COMMAND DOCS
  • COMMAND / COMMAND INFO: Array of arrays, one per command, each containing:
PositionFieldTypeDescription
1namestringCommand name (lowercase)
2arityintegerNumber of arguments
3flagsarrayCommand flags (e.g. readonly, fast)
4first keyintegerPosition of the first key argument
5last keyintegerPosition of the last key argument
6stepintegerKey step interval
7acl categoriesarrayACL categories (prefixed with @)
8tipsarrayCommand tips
9key specificationsarrayKey specification details
10subcommandsarraySubcommand info (empty)
  • COMMAND COUNT: Integer: total number of commands.
  • COMMAND DOCS: Empty array (not yet implemented).

Reads command metadata from the server’s command registry. For COMMAND and COMMAND INFO, builds a detailed array structure per command. COMMAND COUNT returns the total count of all registered commands.

This command does not require the cluster to be initialized.

ErrorCondition
ERRUnknown subcommand

Get command count:

127.0.0.1:5484> COMMAND COUNT
(integer) 42

Get info for PING:

127.0.0.1:5484> COMMAND INFO ping
1) 1) "ping"
2) (integer) -1
3) 1) "fast"
4) (integer) 0
5) (integer) 0
6) (integer) 0
7) 1) "@connection"
8) (empty array)
9) (empty array)
10) (empty array)