diff --git a/pages/common/valkey-cli.md b/pages/common/valkey-cli.md new file mode 100644 index 0000000000..ca7bd70832 --- /dev/null +++ b/pages/common/valkey-cli.md @@ -0,0 +1,32 @@ +# valkey-cli + +> Open a connection to a Valkey server. +> More information: . + +- Connect to the local server: + +`valkey-cli` + +- Connect to a remote server on the default port (6379): + +`valkey-cli -h {{host}}` + +- Connect to a remote server specifying a port number: + +`valkey-cli -h {{host}} -p {{port}}` + +- Connect to a remote server specifying a URI: + +`valkey-cli -u {{uri}}` + +- Specify a password: + +`valkey-cli -a {{password}}` + +- Execute valkey command: + +`valkey-cli {{valkey_command}}` + +- Connect to the local cluster: + +`valkey-cli -c`