Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 92
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-cli

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install redis-cli in Claude Code

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 →
hugging-face-datasetssickn33
94

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.

AAA Skill 50k
db-repairgarrytan
94

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.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

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.

AAA Skill 116k
fix-slow-queriespaperclipai
94

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.

AAA Skill 119k
prisma-8prisma
94

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.

AAA Skill 48k

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.

redis-cli Install

Add to stack

Loading.