redisx-cli(1)
π redisx-cli β a whole command-line Redis / Valkey client, bestie π
okay so this is the redisx-cli manual page, straight out of the RedisX Manual. it's giving "your fave terminal bestie who happens to speak fluent Redis protocol" β¨
β¨ SYNOPSIS β¨
redisx-cli [-h hostname] [-p port] [-t timeout] [-a password]
[--user=username] [--askpass] [-r repeat [-i interval]] [-n db] [-2|-3]
[-x] [--json] [--raw] [-d delim [-D prefix]] [-c] [--tls [--sni host]
[--cacert file] [--cacertdir path] [--insecure] [--cert path --key path]
[--tls-ciphers list | --tls-ciphersuites list]] [--show-pushes=yes|no]
[--attributes] [--scan [--pattern=glob] [--count=n]] [--eval=file]
[--verbose] [--version] [--help] [--usage] [cmd [arg...]]
πΈ DESCRIPTION πΈ
so like. it's a completely free command-line client for Redis / Valkey servers, built on top of the RedisX library. no cap π
you can use it to run a command with a set of arguments on a Redis server β or, if you run it with no command argument at all, it just becomes an interactive client π¦
redisx-cli supports many of the same options as redis-cli (1) and valkey-cli (1), and it produces similar output to those. BUT β and this is the main character plot twist β under the hood it's an entirely independent implementation of the Redis protocol. zero shared code with either Redis or Valkey. not a single line. periodt π
π OPTIONS π
-h,--host=hostnameβ the server hostname. (default:127.0.0.1). yes, lowercase-hmeans host here, keep reading, it gets spicy later πΆοΈ-p,--port=portnumβ the server port. (default:6379).-t,--timeout=secondsβ server connection timeout, and yes you can use decimals. the default timeout is0, which means the OS default handles it. lowkey chill of it π§-a,--pass=passwordβ the password to use when connecting to the server.--user=usernameβ used to send ACL style'AUTH username pass'. it needs-ato work, so don't ghost your password.--askpassβ force the user to input the password with a mask from STDIN. if this argument is used,-awill be ignored. the mask is doing the most π-r,--repeat=nβ execute the specified commandntimes.-i,--interval=secondsβ when-ris used, wait this many seconds before repeating. you can absolutely specify sub-second times like-i 0.1. (default:1).-n,--db=indexβ database number. (default0).-x,--stdinβ read the last argument from STDIN.-2,--RESP2β start the session in RESP2 protocol mode.-3,--RESP3β start the session in RESP3 protocol mode.--jsonβ output in JSON format.--rawβ use raw formatting for replies (with delimiters).-d,--delim=stringβ delimiter between elements for raw format. you can use the JSON convention for escaping special characters. (default:"\n").-D,--prefix=stringβ group prefix for raw format. you can use the JSON convention for escaping special characters. (default:"\n").-c,--clusterβ enable cluster mode (follow-ASKand-MOVEDredirections). it follows the drama wherever it goes π₯--tlsβ establish a secure TLS connection.--insecureβ allow an insecure TLS connection by skipping cert validation. skipping cert validation, bestie, be so serious rn π--sni=hostβ server name indication for TLS.--cacert=fileβ CA Certificate file to verify with.--cacertdir=pathβ directory where trusted CA certificates are stored. if neithercacertnorcacertdirare specified, the default system-wide trusted root certs configuration will apply.--cert=pathβ client certificate to authenticate with.--key=pathβ private key file to authenticate with.--tls-ciphers=listβ sets the list of preferred ciphers (TLSv1.2 and below) in order of preference from highest to lowest, separated by colon (':').--tls-ciphersuites=listβ sets the list of preferred ciphersuites (TLSv1.3) in order of preference from highest to lowest, separated by colon (':').--show-pushes=yes|noβ whether to print RESP3 PUSH messages. (default:no).--attributesβ show RESP3 attributes also, if available.--scanβ list all keys using theSCANcommand.--pattern=globβ keys pattern when using the--scan(default:*).--count=nβ count option when using the--scan. (default:10).--eval=fileβ send anEVALcommand using the Lua script at file. the keyword and other arguments should be separated with a standalone comma on the command-line, such as:'key1 key2 , arg1 arg2 ...'.--verboseβ verbose mode.--versionβ output version and exit.-h,--helpβ show a help message, similar to this manual. (and YES,-his also host up above β the two-hentries are both real, i don't make the rules π )--usageβ display brief usage message.
π¦ EXIT STATUS π¦
on a successful execution the program will return 0 π. in case of errors a non-zero value is returned, corresponding to an error code of the RedisX C library, and an error message and/or trace may also be printed to the standard error. so if something's wrong, check your stderr, it's yapping over there π
π AUTHOR π
Attila Kovacs <attila.kovacs[AT]cfa.harvard.edu> β icon behavior, honestly π
π SEE ALSO π
redis-cli(1)valkey-cli(1)
and that's the whole page bestie, we ate and left absolutely no crumbs πβ¨ this was version 0.9.4, dated 2024-12-15, from the RedisX Manual π go forth and query something gorgeous π«Ά
π¦ where this page comes from
- epel 10: redisx 1.0.4-1.el10_3 Β· Unlicense
- fedora 44: redisx 1.0.3-1.fc44 Β· Unlicense
- fedora 44: redisx 1.0.3-1.fc44 Β· Unlicense
- fedora 44: redisx 1.1.0-3.fc44 Β· Unlicense
- fedora 44: redisx 1.1.0-3.fc44 Β· Unlicense
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms