@@ -39,31 +39,33 @@ You can install the CLI as a binary or run it with [Cargo][3].
3939To install as a binary into ` ~/.cargo/bin ` :
4040
4141``` shell
42- > cargo install --path .
42+ ~ cargo install --path .
4343```
4444
4545Then you can run it:
4646
4747``` shell
48- > redis-async-cli
48+ ~ redis-async-cli
4949```
5050
5151To build and run without installation:
5252
5353``` shell
54- > cargo build --release --bin redis-async-cli
54+ ~ cargo build --release --bin redis-async-cli
5555```
5656
5757Then you can run it:
5858
5959``` shell
60- > ./target/release/redis-async-cli
60+ ~ ./target/release/redis-async-cli
6161```
6262
6363To use the CLI, you first need to run a Redis server. Then you can run this CLI in either interactive mode or command line mode:
6464
6565+ Interactive mode:
6666
67+ In interactive mode, commands are case insensitive, but arguments are not, which means, ` Ping ` , ` ping ` , ` PING ` they refer to the same Redis command.
68+
6769``` shell
6870> redis-async-cli
6971Interactive mode. Type ' exit' to quit.
7779
7880+ Command line mode:
7981
80- For available commands and options, run:
82+ ``` shell
83+ ~ redis-async-cli ping
84+ PONG
85+ ~ redis-async-cli set key value
86+ OK
87+ ~ redis-async-cli get key
88+ " value"
89+ ```
90+
91+ For all available commands and options:
8192
8293``` shell
83- > redis-async-cli --help
94+ ~ redis-async-cli -h
8495```
8596
8697## TLS/SSL
@@ -128,9 +139,11 @@ To build the CLI:
128139~ cargo build --bin redis-async-cli
129140```
130141
131- TBD. Thinking of which may people prefer if they don't want to install Redis on their local.
142+ For [ just ] [ 19 ] users, refer to the local [ justfile ] ( ./justfile ) for a list of targets:
132143
133- Also due to gotchas from different RESP versions and Redis versions. A local dev may be necessary to for reproducible build and test environment.
144+ ``` shell
145+ ~ just -l
146+ ```
134147
135148### Docs
136149
@@ -160,3 +173,4 @@ The project is licensed under the [MIT license](./LICENSE).
160173[ 16 ] : https://redis.io/docs/latest/commands/rpop/
161174[ 17 ] : https://redis.io/docs/latest/commands/lrange/
162175[ 18 ] : https://redis.io/
176+ [ 19 ] : https://github.com/casey/just
0 commit comments