diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c index ed53dcd33..ac2a313e8 100644 --- a/src/redis-benchmark.c +++ b/src/redis-benchmark.c @@ -1613,7 +1613,10 @@ usage: " -s Server socket (overrides host and port)\n" " -a Password for Redis Auth\n" " --user Used to send ACL style 'AUTH username pass'. Needs -a.\n" -" -u Server URI.\n" +" -u Server URI on format redis://user:password@host:port/dbnum\n" +" User, password and dbnum are optional. For authentication\n" +" without a username, use username 'default'. For TLS, use\n" +" the scheme 'rediss'.\n" " -c Number of parallel connections (default 50).\n" " Note: If --cluster is used then number of clients has to be\n" " the same or higher than the number of nodes.\n" diff --git a/src/redis-cli.c b/src/redis-cli.c index 0177effa2..b1b651ea6 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -3028,7 +3028,10 @@ static void usage(int err) { " --askpass Force user to input password with mask from STDIN.\n" " If this argument is used, '-a' and " REDIS_CLI_AUTH_ENV "\n" " environment variable will be ignored.\n" -" -u Server URI.\n" +" -u Server URI on format redis://user:password@host:port/dbnum\n" +" User, password and dbnum are optional. For authentication\n" +" without a username, use username 'default'. For TLS, use\n" +" the scheme 'rediss'.\n" " -r Execute specified command N times.\n" " -i When -r is used, waits seconds per command.\n" " It is possible to specify sub-second times like -i 0.1.\n" @@ -3113,6 +3116,7 @@ version,tls_usage); " Use --cluster help to list all available cluster manager commands.\n" "\n" "Examples:\n" +" redis-cli -u redis://default:PASSWORD@localhost:6379/0\n" " cat /etc/passwd | redis-cli -x set mypasswd\n" " redis-cli -D \"\" --raw dump key > key.dump && redis-cli -X dump_tag restore key2 0 dump_tag replace < key.dump\n" " redis-cli -r 100 lpush mylist x\n"