Today, I needed to figure out which version of Redis my server was running. Here are a few ways on how to do this.

The quickest way to get the version:

redis-cli INFO server

Look for the line:

redis_version:7.0.11

You can also connect interactively:

redis-cli

Then run:

INFO server