Skip to main content
0 reactions

How to Run Valkey Commands in Valkey Admin

Featured card titled Run Valkey Commands in Valkey Admin, with a command window whose history lists SET book:4:price 9.99 and GET book:4:price and whose response reads 9.99.
Run Valkey commands in Valkey Admin.

Valkey® Admin’s Send Command is a box for typing Valkey commands, just as in valkey-cli. It shows each reply, times it, and keeps a history you can reuse.

By the end, you’ll have sent commands, read their replies, and seen how Send Command protects the server from risky ones.

Note: Every command and screen on this page is real, from Valkey Admin 1.3.0 connected to Valkey 9.1 on an Apple silicon Mac with macOS 26.

Prerequisites

  • Valkey Admin connected to your Valkey server.

Step 1: Open Send Command

Connect first if you haven’t: How to Connect Valkey Admin to a Valkey Server. Then click Send Command in the sidebar. Replies appear on the left, History on the right, and the command box is at the bottom.

Step 2: Send a Command

Type a command exactly as in valkey-cli and click Send:

Send CommandPlain text
SET book:4:title "Salt and Starlight"
ResponsePlain text
OK
Valkey Admin Send Command showing the reply OK with a round-trip time of 19 ms, and the History entry for SET book:4:title Salt and Starlight.
The reply, its time, and the command in History.

The reply shows under Response with the round-trip time: how long the command took from Valkey Admin to the server and back.

Step 3: Read Values Back

Send two more, then read the price:

Send CommandPlain text
SET book:4:author "Nadia Quill"
Send CommandPlain text
SET book:4:price 9.99
Send CommandPlain text
GET book:4:price
ResponsePlain text
9.99

Valkey Admin shows the value without the quotes valkey-cli puts around it.

Valkey Admin Send Command with the reply 9.99 and its round-trip time under Response, and a History list of SET book:4:title, SET book:4:author, SET book:4:price 9.99 and GET book:4:price with their times.
GET book:4:price replies 9.99, and every command goes into History.

Step 4: Reuse a Command from History

Each entry in History has its time, its round-trip time and two icons: one copies the command, the other runs it again. The documentation (opens in a new tab) adds that you can search the history and compare the results of two commands.

Step 5: See Which Commands It Blocks

Some commands would change the connection that Valkey Admin shares between its pages, or are too risky to send from here. Send Command blocks them. SELECT is one:

Send CommandPlain text
SELECT 1
Valkey Admin Send Command with a notice reading Command blocked: SELECT changes the selected database on the shared connection.
SELECT is blocked in Send Command.

The documentation lists the blocked commands: SELECT, AUTH, HELLO, RESET, QUIT, SHUTDOWN, DEBUG, FLUSHALL and FLUSHDB. To work in another database, set Database when you add the connection.

Step 6: Confirm a Risky Command, or Use a Safer One

Other commands run only after you confirm. KEYS is one, because it can block a server that holds many keys:

Send CommandPlain text
KEYS *
A Confirm Dangerous Command box warning that KEYS can block the server for a long time when many keys exist and suggesting SCAN, with a box to type KEYS * to confirm and Cancel and Run anyway buttons.
KEYS runs only after you confirm it.

To go ahead, type the command into the box and click Run anyway. Or click Cancel and use SCAN, as the warning suggests:

Send CommandPlain text
SCAN 0 MATCH book:4:* COUNT 100

Valkey Admin numbers the parts of the reply: 0 is the cursor, and 0 means the scan is complete. 1.0 to 1.2 are the keys found.

Valkey Admin Send Command showing a SCAN reply as numbered parts: 0 for the cursor, then 1.0 book:4:title, 1.1 book:4:author and 1.2 book:4:price, with History listing the commands sent.
SCAN finds the three book keys.

The documentation also asks for confirmation before CONFIG RESETSTAT, CONFIG REWRITE, SLAVEOF, REPLICAOF and CLUSTER RESET.

Clean Up

Delete the three keys:

Send CommandPlain text
DEL book:4:title book:4:author book:4:price
ResponsePlain text
3

Common Mistakes

MistakeWhat happensDo this instead
Using SELECT to switch databasesSend Command blocks itSet Database in the connection
Running KEYS * on a server with many keysIt can block the server while it runsUse SCAN, as in Valkey KEYS vs SCAN

FAQ

Is Send Command the same as valkey-cli?

It sends the same commands to the same server. It also times each reply, keeps a history and stops a few commands that could disrupt the server.

Conclusion

Send Command runs Valkey commands inside Valkey Admin: type, send, read the reply. It keeps your history and guards the server against a short list of risky commands.

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.

0 comments