lujiajing1126 / redis-cli

A Redis-Cli Tool written in typescript for terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement -n arg to match native redis-cli option to use database number

coolkev opened this issue · comments

I need to be able to flush a specific database index from a non-interactive command line. The SELECT command works fine to select the correct database in interactive mode, but I can't run multiple commands in non-interactive mode. Adding the -n arg will solve this problem.

https://redis.io/docs/ui/cli/#host-port-password-and-database