A TUI Redis client to inspect and manage your Redis databases. Inspired by k9s.
⚠️ This is a work in progress. At time of writing, it's a little project I'm working on for two main reasons:
- Because I actually want something like this for my own use
- To explore OpenTUI
It's yet to be seen how far I'll take this. If you're from the far future and this message is still here, then it probably means it never got anywhere beyond a prototype stage :)
brew tap evertdespiegeleer/tap
brew install red-cliSimply run red command, potentially providing certain configuration options.
red --connection-string="redis://localhost:6379"Configuration can be provided in multiple ways. In decreasing order of precedence:
- Command line arguments
- Environment variables
- Configuration file
- Built-in defaults
Run red --help to see all available command line arguments.
RED_CONNECTION_STRING: The Redis connection string (e.g.redis://localhost:6379)RED_DELIMITER: The delimiter used to group keys (default::)
A configuration file can be placed either in the directory where Red is executed, or in any higher-level directory, up to your home directory. Lower level configuration files take precedence over higher-level ones. The following file names are supported:
- .redrc
- .redrc.json
- .redrc.yaml
- .redrc.yml
- .redrc.js
- .redrc.ts
- .redrc.cjs
- red.config.js
- red.config.ts
- red.config.cjs
Use the json schema as reference for the configuration file structure. Mind the version in the $schema property!
Below is an example .redrc.json file:
{
"$schema": "https://github.com/evertdespiegeleer/red-cli/releases/download/v0.0.11/redrc.schema.json",
"connectionString": "redis://localhost:6379",
"delimiter": ":",
"path": "some:nested:path",
"autoRefresh": true,
"refreshInterval": 3000
}Initialize the repository:
./scripts/init.shRun the project:
bun run dev