In one of the previous Redis posts I wrote about how you could authenticate and run a command in one go. Now, let’s see how to get the currently installed version of Redis. Although there are a couple of ways to do so, I’m going to pick the two laziest approaches.
Run the following command:
redis-server --version redis-server -v
INFO server command.
redis-cli INFO server | grep ^redis_version