valkey-cli
Open a connection to a Valkey server. More information: https://valkey.io/topics/cli/.
- Connect to the local server:
valkey-cli
- Connect to a remote server on the default port (6379):
valkey-cli -h
- Connect to a remote server specifying a port number:
valkey-cli -h -p
- Connect to a remote server specifying a URI:
valkey-cli -u
- Specify a password:
valkey-cli -a
- Execute valkey command:
valkey-cli
- Connect to the local cluster:
valkey-cli -c
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
