redis-cli -u redis://default:secret@cache01.example.com:6379/0 PING

Category: Databases & SQL

redis-cli -u redis://default:secret@cache01.example.com:6379/0 PING

Connect with a full Redis URL

-u accepts redis://user:password@host:port/db; use rediss:// for TLS. Embedding the password in the URL still exposes it in the process list — prefer REDISCLI_AUTH. Related: -h and -p flags.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.