redis-cli
Skill by sickn33
Explains how to use the redis-cli command-line tool to query, inspect, debug and manage Redis. Written for developers and administrators who work with Redis from the shell.
Install redis-cli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/redis-cli ~/.claude/skills/redis-cliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/redis-cli ~/.gemini/antigravity-cli/skills/redis-cliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The redis-cli skill is a reference and usage guide for the redis-cli command-line tool. It covers command-line execution and interactive mode, along with connection options such as TLS, database selection and authentication. It also lists data query commands for strings, hashes, lists, sets, sorted sets and keys, plus scan, monitoring, latency and output formatting options.
It also documents server administration tasks, including ACL users, client connections, runtime configuration, persistence, replication, slow logs and cluster checks. The guide includes security notes, for example avoiding passwords passed with -a and using SCAN instead of KEYS on production databases. It is aimed at developers and administrators who want an assistant to work with Redis from the command line.
Written from the project's SKILL.md and checked against it.
What it can do
- Command-line and interactive useRuns one redis-cli command and exits, or works in a REPL with history and tab completion.
- Data queriesReference commands for strings, hashes, lists, sets, sorted sets and key inspection.
- Incremental key scanningLists keys with --scan and SCAN while noting the server CPU cost of each call.
- Server inspectionCovers INFO sections, --stat, --bigkeys, --memkeys and latency analysis.
- Output controlFormats results as raw, CSV or JSON and reads values from stdin.
- Server administrationCovers ACL, CLIENT, CONFIG, persistence, replication and SHUTDOWN commands.
- Cluster managementCovers cluster health checks and moving slots between nodes with --cluster.
What you need
- redis-cli installed, or Docker to run it
- A Redis server to connect to
Try asking
- Show me the largest keys in my Redis server by memory usage
- Scan for all keys matching user:* without using KEYS
- Check the replication status and slow log of my Redis instance
Good to know
- Commands such as FLUSHALL and FLUSHDB are irreversible.
- KEYS * can block the server on large databases.
- --rdb produces a point-in-time snapshot, not a continuous backup.
- The skill metadata marks its risk as critical.
Security check
C- Asks for administrator rights (sudo)In
skills/redis-cli/SKILL.md:sudo
Checked automatically: skills/redis-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md17 KB -
references/advanced-features.md9 KB -
references/connection-and-options.md8 KB -
references/data-query-commands.md21 KB -
references/inspection-and-monitoring.md9 KB
Show all 8 files
-
references/key-management.md8 KB -
references/module-data-types.md20 KB -
references/server-administration.md10 KB
Alternatives to redis-cli
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
redis-cli: common questions
How should I pass a Redis password with redis-cli?
The source advises against passing passwords with -a in production because they can appear in shell history and process listings. It recommends the REDISCLI_AUTH environment variable instead.
Why use SCAN instead of KEYS?
The source says KEYS * blocks the server on large databases, so SCAN is preferred in production code. It also notes that each SCAN call still uses server CPU, so COUNT and throttling should be tuned.
Does the skill cover Redis cluster administration?
Yes, the source lists cluster health checks with redis-cli --cluster check and slot moves with --cluster reshard, plus cluster-aware connections with -c.
How do I install redis-cli?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is redis-cli free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is redis-cli safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.
What are alternatives to redis-cli?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
