Agent skill · software engineering · sickn33
redis-cli
Redis command-line interface (redis-cli) reference and usage guide. Use this skill whenever the user mentions redis-cli, Redis CLI, or any task involving querying, inspecting, debugging, or managing Redis from the command line.
Why this skill is useful
Provides specific Redis CLI commands and usage patterns that the AI wouldn't reliably generate on its own.
What it needs
Requires redis installed locally. About 8k tokens when loaded. Last updated 2026-08-07. 44,571 stars on the source repository.
What this skill does
redis-cli — Redis Command Line Interface When to Use Use this skill when you need redis command-line interface (redis-cli) reference and usage guide. Use this skill whenever the user mentions redis-cli, Redis CLI, or any task involving querying, inspecting, debugging, or managing Redis from the command line. Triggers on key/value reads and writes, SCAN or keyspace... redis-cli is the primary command-line tool for interacting with Redis. It supports two modes: command-line execution (run a command and exit) and interactive mode (a REPL with tab completion, history, and hints). It also provides special modes for monitoring, latency analysis, key space scanning, and data import/export. Official resources: Redis CLI Docs Commands Download Prerequisites Security Considerations IMPORTANT: Redis provides powerful operations that can irreversibly modify or delete data. Pay close attention to the following safety guidelines: Never pass passwords via -a in production — visible in shell history and process listings. Use REDISCLIAUTH environment variable instead. KEYS blocks the server on large databases — always use SCAN in production code. MONITOR logs all commands including sensitive data — use cautiously, and never for extended periods on production servers. FLUSHALL / FLUSHDB are irreversible — verify target database with CLIENT LIST or INFO keyspace first. --rdb transfer during write operations may produce inconsistent snapshots on busy servers. Quick Reference Connection Command-Line vs Interactive Mode The prompt shows host:port[db]. Use CONNECT <host> <port> to switch instances interactively. Data Query Cheat Sheet String operations (O(1)): Hash operations: List operations: Set operations: Sorted Set operations: Key inspection: Key Scanning (Production-Safe) SCAN-based iteration never blocks the server, unlike KEYS which should be avoided in production. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sickn33/redis-cli