Skip to content

Commit

Permalink
Add an explanation for URI with -u in redis-cli (#2604)
Browse files Browse the repository at this point in the history
It's good for users to know that they need to specify "default" as the username when authenticating without a username. Other details of the URI format are described too, like scheme and dbnum.

Related to redis/redis#12751

Co-authored-by: Viktor Söderqvist <[email protected]>
  • Loading branch information
lowgiant and zuiderkwast authored Nov 22, 2023
1 parent 0728983 commit c2d73cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/connect/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ option and the URI pattern `redis://user:password@host:port/dbnum`:
$ redis-cli -u redis://LJenkins:p%[email protected]:16379/0 PING
PONG

**NOTE:**
User, password and dbnum are optional.
For authentication without a username, use username `default`.
For TLS, use the scheme `rediss`.

## SSL/TLS

By default, `redis-cli` uses a plain TCP connection to connect to Redis.
Expand Down

0 comments on commit c2d73cd

Please sign in to comment.