Site icon JD Bots

How to Check Your Valkey Version

Featured image for How to Check Your Valkey Version, showing valkey-server and valkey-cli both reporting version 9.1.4, and INFO server reporting valkey_version:9.1.4.

Check your Valkey version three ways.

Before you follow a guide or plan an upgrade, check which Valkey® version you have. There are three ways, and the third asks the running server itself.

Syntax

Syntax

valkey-server --version
valkey-cli --version
INFO server

From the valkey-cli and INFO documentation.

Prerequisites

The commands are the same on macOS, Ubuntu and Windows (inside WSL).

Step 1: Check the Server Program

Terminal

valkey-server --version

Output

Valkey server v=9.1.4 sha=00000000:1 malloc=libc bits=64 build=3dcf7f7d3452ddee

v=9.1.4 is the version. The rest of the line describes how this copy was built.

Step 2: Check valkey-cli

Terminal

valkey-cli --version

Output

valkey-cli 9.1.4

valkey-cli is installed together with the server, so the two versions usually match.

Both programs report Valkey 9.1.4.

Step 3: Ask the Running Server with INFO

Terminal

valkey-cli INFO server

Output (the lines that matter)

# Server
redis_version:7.2.4
server_name:valkey
valkey_version:9.1.4
valkey_release_stage:ga

These are the first lines of a longer reply:

Common Mistakes

MistakeWhat happensDo this instead
Reading redis_version as the Valkey versionYou think you have Valkey 7.2Read valkey_version
Checking valkey-server --version on your computer when your app uses another serverThe versions can differRun INFO server against the server your app uses

FAQ

Which is the newest Valkey version?

Valkey lists its releases, and how long each one is supported, on its releases page.

Can I check the version of a Valkey on another computer?

Yes. Connect to it with valkey-cli’s -h and -p options and run INFO server.

Conclusion

valkey-server --version and valkey-cli --version show what’s installed, and INFO server shows what’s running. Read valkey_version, not redis_version.

Related

Additional Resources

Valkey® is a registered trademark of LF Projects, LLC. Redis® is a registered trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd. Other names mentioned are trademarks of their respective owners. JD Bots isn’t affiliated with the Valkey project, LF Projects or Redis Ltd., and isn’t endorsed, supported or certified by them.

Exit mobile version