The problem/use-case that the feature addresses

I would like to have a way to quickly connect from redis-cli to different redis cluster.

redis-cli --profile prod
redis-cli --profile dev

Then in a configuration file I would have a definition of those profile

prod:
  host: XXX
  port: XXX
  tls-certificate: <inline certificate goes here>

I would like to define those cluster definitions in a single configuration file that ideally redis-cli would read by itself like redisclirc

By doing so, redis-cli could import configuration file and also export the current connection setting to easily build up this file.

Description of the feature

I define different redis configuration in a file. Redis cli either read one that I pass explicitly from the command line, or can look at a set of well-known files to find those configurations. That way I don't have to specify it by hand at each command. Which is painful, especially with connection with TLS certificate where I have to pass them with a file path. Ideally, I would like to specify everything inline in the configuration file.

Alternatives you've considered

I could do a script and add them to my path but it is a less elegant solution. Also if I have 100 configurations I do not want to have 100 different aliases. I want to specify them all in a file (or several files) and then specify just the name of the configuration that I want to use. Like profile configuration for CLI commands.