Can I use redis-cli with a connection URL?

No, at the moment (v3.2.1) redis-cli does not support the URI connection schema. If you want, you can make a feature or pull request for that in the Redis repository.

UPDATE:
The -u option was released with Redis 4.0, see Release notes. For example:

redis-cli -u redis://user:pass@host:6379/0

Leave a Comment