Redis Cheat Sheet/Connect to local Redis

Start an interactive session against localhost:6379.

Section: Connecting and basic redis-cli use

Connect to local Redis

bash
bash
redis-cli
Explanation

Use this when Redis is running locally with default host and port.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Connecting and basic redis-cli use
Connect to a remote host
Connect to a remote Redis server.
OpenIn sheetbashsame section
Connect with password
Authenticate during connect.
OpenIn sheetbashsame section
Connect using a Redis URL
Use a single connection string, including DB number.
OpenIn sheetbashsame section
Connect over TLS
Connect securely to a TLS-enabled Redis endpoint.
OpenIn sheetbashsame section
Ping the server
Basic liveness check; returns PONG when reachable.
OpenIn sheetbashsame section
Authenticate after connecting
Authenticate the current connection.
OpenIn sheetbashsame section