官网
https://github.com/laixintao/iredis
下载
用法
# iredis --helpUsage: iredis [OPTIONS] [CMD]...IRedis: Interactive RedisWhen no command is given, IRedis starts in interactive mode.Examples:- iredis- iredis -d dsn- iredis -h 127.0.0.1 -p 6379- iredis -h 127.0.0.1 -p 6379 -a <password>- iredis --url redis://localhost:7890/3Type "help" in interactive mode for information on available commands andsettings.Options:-h TEXT Server hostname (default: 127.0.0.1).-p TEXT Server port (default: 6379).-s, --socket TEXT Server socket (overrides hostname and port).-n TEXT Database number.(overwrites dsn/url's db number)-a, --password TEXT Password to use when connecting to the server.--url TEXT Use Redis URL to indicate connection(Can set withenv `IREDIS_URL`), Example:redis://[[username]:[password]]@localhost:6379/0rediss://[[username]:[password]]@localhost:6379/0unix://[[username]:[password]]@/path/to/socket.sock?db=0-d, --dsn TEXT Use DSN configured into the [alias_dsn] section ofiredisrc file. (Can set with env `IREDIS_DSN`)--newbie / --no-newbie Show command hints and useful helps.--iredisrc TEXT Config file for iredis, default is ~/.iredisrc.--decode TEXT decode response, default is No decode, which willoutput all bytes literals.--raw / --no-raw Use raw formatting for replies (default whenSTDOUT is not a tty). However, you can use --no-raw to force formatted output even when STDOUT isnot a tty.--rainbow / --no-rainbow Display colorful prompt.--shell / --no-shell Allow to run shell commands, default to True.--pager / --no-pager Using pager when output is too tall for yourwindow, default to True.--version Show the version and exit.--help Show this message and exit.
