Node.js Redis Command-Line Interface

2.1.2 · maintenance · verified Wed Apr 22

redis-cli is a Node.js-based command-line interface tool designed for interacting with Redis servers, offering an alternative to the official C-based Redis CLI. It allows users to connect to Redis instances, including those in cluster mode, and execute Redis commands directly from their terminal. The package is currently at version 2.1.2, though the provided release history primarily details updates up to version 1.4.0, which included bug fixes and blocking mode support, as well as vulnerability patches in earlier 1.3.x releases. While it mirrors many features of the official CLI, such as host, port, authentication, and TLS connection options, its key differentiator is its JavaScript/TypeScript implementation, potentially appealing to Node.js developers seeking a pure-JS ecosystem tool or a CLI that could be more easily extended within a Node.js project. Its release cadence appears infrequent based on the visible history, suggesting a maintenance-focused development approach.

Common errors

Warnings

Install

Quickstart

Demonstrates global installation and basic command-line usage for connecting to Redis instances, including cluster mode.

$ npm install -g redis-cli

# Connect to default Redis instance (127.0.0.1:6379)
$ rdcli

# Connect to a specific host and port
$ rdcli -h 10.4.23.235 -p 6380

# Connect in cluster mode
$ rdcli -c -h my-cluster-host

view raw JSON →