Redis CLI Simulator

Run Redis commands against an in-browser, in-memory store

redis-cli
db0

127.0.0.1:6379>PING
PONG
127.0.0.1:6379>

Quick commands (click to run):

Press Enter to run · ↑/↓ to recall history · store lives only in this tab.

Examples

Strings and counters

Input
SET visits 0  →  INCR visits  →  GET visits
Output
OK  →  1  →  1

Store a value and atomically increment it, exactly as against a real Redis instance.

A sorted-set leaderboard

Input
ZADD scores 150 ada 200 grace  →  ZRANGE scores 0 -1 WITHSCORES
Output
ada / 1 followed by ... members returned in score order with their scores.

Build a ranked set and read the members back ordered by score, with scores attached.

About this tool

Learning Redis usually means installing a server, a CLI, and fighting local configuration before you can type a single command. This simulator gives you a working Redis terminal in the browser, instantly, with no server or signup.

It implements a practical subset of Redis against an in-memory store: strings (GET, SET with EX/NX, INCR, DECR, APPEND, STRLEN), expiry (EXPIRE, TTL, PERSIST), hashes (HSET, HGET, HGETALL, HDEL), lists (LPUSH/RPUSH, LPOP/RPOP, LRANGE, LLEN), sets (SADD, SMEMBERS, SISMEMBER, SCARD), sorted sets (ZADD, ZRANGE WITHSCORES, ZSCORE), plus KEYS, TYPE, EXISTS, DEL, DBSIZE, SELECT, FLUSHDB, PING and INFO.

How to use

  1. Type a command

    Enter any supported Redis command (e.g. SET key value) and press Enter.

  2. Use the quick buttons

    Click a sample command to run it instantly and see typical output.

  3. Recall history

    Use the up/down arrow keys to cycle through commands you have already run.

  4. Reset anytime

    Use Reset store (FLUSHALL) to clear the in-memory data and start over.

Common mistakes

Mistake:Expecting persistence.

Fix:The store lives only in this browser tab for the session. It is a learning tool, not a database.

Mistake:Running a command against the wrong type.

Fix:Redis returns WRONGTYPE if you apply a list command to a string key — re-create the key with the right type.

Frequently asked questions

References & standards