diff --git a/docs/command-reference/server-management/client-help.md b/docs/command-reference/server-management/client-help.md new file mode 100644 index 00000000..98d7e788 --- /dev/null +++ b/docs/command-reference/server-management/client-help.md @@ -0,0 +1,66 @@ +--- +description: Learn how to use Redis CLIENT HELP command to list all CLIENT subcommands and their descriptions. +--- + +import PageTitle from '@site/src/components/PageTitle'; + +# CLIENT HELP + + + +## Syntax + + CLIENT HELP + +**Time complexity:** O(1) + +**ACL categories:** @slow + +The `CLIENT HELP` command returns a helpful text describing the different `CLIENT` subcommands supported by Dragonfly. + +## Return + +[Array reply](https://redis.io/docs/latest/develop/reference/protocol-spec/#arrays): a list of subcommands and their descriptions. + +## Example + +The output of the `CLIENT HELP` command includes entries similar to the following (as implemented in Dragonfly): + +```shell +dragonfly> CLIENT HELP + 1) CLIENT [ [value] [opt] ...]. Subcommands are: + 2) CACHING (YES|NO) + 3) Enable/disable tracking of the keys for next command in OPTIN/OPTOUT modes. + 4) GETNAME + 5) Return the name of the current connection. + 6) ID + 7) Return the ID of the current connection. + 8) KILL + 9) Kill connection made from . +10) KILL