MCPcopy Create free account
hub / github.com/F-Stack/f-stack / usage

Function usage

app/redis-6.2.6/src/redis-cli.c:1884–2012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1882}
1883
1884static void usage(void) {
1885 sds version = cliVersion();
1886 fprintf(stderr,
1887"redis-cli %s\n"
1888"\n"
1889"Usage: redis-cli [OPTIONS] [cmd [arg [arg ...]]]\n"
1890" -h <hostname> Server hostname (default: 127.0.0.1).\n"
1891" -p <port> Server port (default: 6379).\n"
1892" -s <socket> Server socket (overrides hostname and port).\n"
1893" -a <password> Password to use when connecting to the server.\n"
1894" You can also use the " REDIS_CLI_AUTH_ENV " environment\n"
1895" variable to pass this password more safely\n"
1896" (if both are used, this argument takes precedence).\n"
1897" --user <username> Used to send ACL style 'AUTH username pass'. Needs -a.\n"
1898" --pass <password> Alias of -a for consistency with the new --user option.\n"
1899" --askpass Force user to input password with mask from STDIN.\n"
1900" If this argument is used, '-a' and " REDIS_CLI_AUTH_ENV "\n"
1901" environment variable will be ignored.\n"
1902" -u <uri> Server URI.\n"
1903" -r <repeat> Execute specified command N times.\n"
1904" -i <interval> When -r is used, waits <interval> seconds per command.\n"
1905" It is possible to specify sub-second times like -i 0.1.\n"
1906" -n <db> Database number.\n"
1907" -3 Start session in RESP3 protocol mode.\n"
1908" -x Read last argument from STDIN.\n"
1909" -d <delimiter> Delimiter between response bulks for raw formatting (default: \\n).\n"
1910" -D <delimiter> Delimiter between responses for raw formatting (default: \\n).\n"
1911" -c Enable cluster mode (follow -ASK and -MOVED redirections).\n"
1912" -e Return exit error code when command execution fails.\n"
1913#ifdef USE_OPENSSL
1914" --tls Establish a secure TLS connection.\n"
1915" --sni <host> Server name indication for TLS.\n"
1916" --cacert <file> CA Certificate file to verify with.\n"
1917" --cacertdir <dir> Directory where trusted CA certificates are stored.\n"
1918" If neither cacert nor cacertdir are specified, the default\n"
1919" system-wide trusted root certs configuration will apply.\n"
1920" --insecure Allow insecure TLS connection by skipping cert validation.\n"
1921" --cert <file> Client certificate to authenticate with.\n"
1922" --key <file> Private key file to authenticate with.\n"
1923" --tls-ciphers <list> Sets the list of prefered ciphers (TLSv1.2 and below)\n"
1924" in order of preference from highest to lowest separated by colon (\":\").\n"
1925" See the ciphers(1ssl) manpage for more information about the syntax of this string.\n"
1926#ifdef TLS1_3_VERSION
1927" --tls-ciphersuites <list> Sets the list of prefered ciphersuites (TLSv1.3)\n"
1928" in order of preference from highest to lowest separated by colon (\":\").\n"
1929" See the ciphers(1ssl) manpage for more information about the syntax of this string,\n"
1930" and specifically for TLSv1.3 ciphersuites.\n"
1931#endif
1932#endif
1933" --raw Use raw formatting for replies (default when STDOUT is\n"
1934" not a tty).\n"
1935" --no-raw Force formatted output even when STDOUT is not a tty.\n"
1936" --quoted-input Force input to be handled as quoted strings.\n"
1937" --csv Output in CSV format.\n"
1938" --show-pushes <yn> Whether to print RESP3 PUSH messages. Enabled by default when\n"
1939" STDOUT is a tty but can be overriden with --show-pushes no.\n"
1940" --stat Print rolling stats about server: mem, clients, ...\n"
1941" --latency Enter a special mode continuously sampling latency.\n"

Callers 1

parseOptionsFunction · 0.70

Calls 2

cliVersionFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected