Forrest logo
back to the redis-cli tool

redis-cli:tldr:3e22a

redis-cli: Connect to the local cluster.
$ redis-cli -c
try on your machine

Sure!

redis-cli -c is a command used to connect to a Redis server using the Redis command line interface (CLI) in cluster mode.

Here's what each part of the command means:

  • redis-cli is the command to start the Redis command line interface.
  • -c is an option that enables cluster mode. In cluster mode, Redis treats a group of Redis instances as a single logical Redis server, allowing data to be distributed across multiple nodes for scalability and high availability.

By running redis-cli -c, you can connect to a Redis cluster and execute commands in the cluster mode, such as querying and modifying data in the cluster.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the redis-cli tool