mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 06:42:54 +00:00
22 lines
446 B
Plaintext
22 lines
446 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# consul-kv
|
|
|
|
> Distributed key-value store with health checking and service discovery.
|
|
> More information: <https://learn.hashicorp.com/consul/getting-started/kv>.
|
|
|
|
- Read a value from the key-value store:
|
|
|
|
`consul kv get {{key}}`
|
|
|
|
- Store a new key-value pair:
|
|
|
|
`consul kv put {{key}} {{value}}`
|
|
|
|
- Delete a key-value pair:
|
|
|
|
`consul kv delete {{key}}`
|