On this page you find all important commands for the CLI tool redis-cli. If the
command you are looking for is missing please ask our AI.
redis-cli
The redis-cli command-line utility lets you interact with a Redis database. With redis-cli, you can run Redis commands directly from the command-line terminal or with interactive mode.
List of commands for redis-cli:
-
redis-cli:command:execute Execute Redis command.$ redis-cli ${redis_command}try on your machineexplain this command
-
redis-cli:tldr:3e22a redis-cli: Connect to the local cluster.$ redis-cli -ctry on your machineexplain this command
-
redis-cli:tldr:8df14 redis-cli: Connect to a remote server specifying a URI.$ redis-cli -u ${uri}try on your machineexplain this command
-
redis-cli:tldr:c98ea redis-cli: Connect to a remote server specifying a port number.$ redis-cli -h ${host} -p ${port}try on your machineexplain this command
-
redis-cli:tldr:d9e56 redis-cli: Connect to a remote server on the default port (6379).$ redis-cli -h ${host}try on your machineexplain this command
-
redis-cli:tldr:e18d7 redis-cli: Connect to the local server.$ redis-clitry on your machineexplain this command
-
redis:queue:flush Flush a Redis queue$ redis-cli ${password} -n ${database} flushdbtry on your machineexplain this command
-
redis:queue:length Return the length of a given Redis queue.$ redis-cli ${password} -n ${database} llen ${queue}try on your machineexplain this command