How To Install Redis-cli?
Install redis-cli
-
Debian
apt-get install redis-toolsClick to copy -
Ubuntu
apt-get install redis-toolsClick to copy -
Alpine OS
apk add redisClick to copy -
Arch Linux
pacman -S redisClick to copy -
Kali Linux
apt-get install redis-toolsClick to copy -
Fedora
dnf install redisClick to copy -
Raspbian
apt-get install redis-toolsClick to copy -
macOS
brew install redisClick to copy
Opens a connection to a Redis server.
How to use redis-cli?
Below are few example commands for redis-cli that you can use in the terminal.
Connect to the local server:redis-cliClick to copyConnect to a remote server on the default port (6379):redis-cli -h hostClick to copyConnect to a remote server specifying a port number:redis-cli -h host -p portClick to copySpecify a password:redis-cli -a passwordClick to copyExecute Redis command:redis-cli redis_commandClick to copy
To install the latest version of redis-cli in your favorite operating system just copy the redis-cli installation command from above and paste it into terminal. It will download and install the latest version of redis-cli 2026 package in your OS.




