![Forrest logo](/images/logo.png)
redis-cli:tldr:e18d7
The redis-cli
command is used to open the Redis command-line interface (CLI) in the terminal.
Redis is an open-source, in-memory data structure store that can be used as a database, cache, or message broker. The Redis CLI is a command-line utility that allows users to interact with Redis servers.
When you run the redis-cli
command, you establish a connection with the local or remote Redis server, and then you can enter Redis commands directly in the command line. These commands are used to perform various operations like setting values, retrieving values, manipulating data structures, and more.
For example, after running redis-cli
, you can execute commands like SET key value
to set a value for a given key, GET key
to get the value associated with a key, LPUSH list value
to push a value to the head of a list, and so on.
The Redis CLI provides a convenient way to interact and manage Redis server instances directly from the command line, making it an essential tool for Redis administration and development tasks.