Use redis-cli
interactive shell without installing redis on your host machine, using docker.
The following assumes you have docker engine or desktop up and running.
Add the following line to your bash profile (~/.bash_profile
or ~/.bashrc
)
alias redis-cli='docker run -it --rm redis:3.2-alpine redis-cli "$@"'
redis-cli -h 1.1.1.1 -a abc