mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-13 00:47:55 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/valkey-cli
Normal file
37
tldr/valkey-cli
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 {{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`
|
||||
Reference in New Issue
Block a user