redis-cli is the command-line interface for Redis — used to connect to a Redis server and run commands interactively. It's essential for development, debugging, inspecting data, and administration.
Connecting
redis-cli # connect to localhost:6379 (default)
redis-cli -h host -p 6379 # connect to a specific host/port
redis-cli -a password # with authentication
redis-cli -n 2 # select database number 2
