MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / usage

Function usage

src/redis-cli.c:1695–1824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1693}
1694
1695static void usage(void) {
1696 sds version = cliVersion();
1697 fprintf(stderr,
1698"keydb-cli %s\n"
1699"\n"
1700"Usage: keydb-cli [OPTIONS] [cmd [arg [arg ...]]]\n"
1701" -h <hostname> Server hostname (default: 127.0.0.1).\n"
1702" -p <port> Server port (default: 6379).\n"
1703" -s <socket> Server socket (overrides hostname and port).\n"
1704" -a <password> Password to use when connecting to the server.\n"
1705" You can also use the " REDIS_CLI_AUTH_ENV " environment\n"
1706" variable to pass this password more safely\n"
1707" (if both are used, this argument takes precedence).\n"
1708" --user <username> Used to send ACL style 'AUTH username pass'. Needs -a.\n"
1709" --pass <password> Alias of -a for consistency with the new --user option.\n"
1710" --askpass Force user to input password with mask from STDIN.\n"
1711" If this argument is used, '-a' and " REDIS_CLI_AUTH_ENV "\n"
1712" environment variable will be ignored.\n"
1713" -u <uri> Server URI.\n"
1714" -r <repeat> Execute specified command N times.\n"
1715" -i <interval> When -r is used, waits <interval> seconds per command.\n"
1716" It is possible to specify sub-second times like -i 0.1.\n"
1717" -n <db> Database number.\n"
1718" -3 Start session in RESP3 protocol mode.\n"
1719" -x Read last argument from STDIN.\n"
1720" -d <delimiter> Delimiter between response bulks for raw formatting (default: \\n).\n"
1721" -D <delimiter> Delimiter between responses for raw formatting (default: \\n).\n"
1722" -c Enable cluster mode (follow -ASK and -MOVED redirections).\n"
1723" -e Return exit error code when command execution fails.\n"
1724#ifdef USE_OPENSSL
1725" --tls Establish a secure TLS connection.\n"
1726" --sni <host> Server name indication for TLS.\n"
1727" --cacert <file> CA Certificate file to verify with.\n"
1728" --cacertdir <dir> Directory where trusted CA certificates are stored.\n"
1729" If neither cacert nor cacertdir are specified, the default\n"
1730" system-wide trusted root certs configuration will apply.\n"
1731" --insecure Allow insecure TLS connection by skipping cert validation.\n"
1732" --cert <file> Client certificate to authenticate with.\n"
1733" --key <file> Private key file to authenticate with.\n"
1734" --tls-ciphers <list> Sets the list of prefered ciphers (TLSv1.2 and below)\n"
1735" in order of preference from highest to lowest separated by colon (\":\").\n"
1736" See the ciphers(1ssl) manpage for more information about the syntax of this string.\n"
1737#ifdef TLS1_3_VERSION
1738" --tls-ciphersuites <list> Sets the list of prefered ciphersuites (TLSv1.3)\n"
1739" in order of preference from highest to lowest separated by colon (\":\").\n"
1740" See the ciphers(1ssl) manpage for more information about the syntax of this string,\n"
1741" and specifically for TLSv1.3 ciphersuites.\n"
1742#endif
1743#endif
1744" --raw Use raw formatting for replies (default when STDOUT is\n"
1745" not a tty).\n"
1746" --no-raw Force formatted output even when STDOUT is not a tty.\n"
1747" --quoted-input Force input to be handled as quoted strings.\n"
1748" --csv Output in CSV format.\n"
1749" --show-pushes <yn> Whether to print RESP3 PUSH messages. Enabled by default when\n"
1750" STDOUT is a tty but can be overriden with --show-pushes no.\n"
1751" --stat Print rolling stats about server: mem, clients, ...\n"
1752" --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