HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

consul kv — Distributed key-value store with health checking and service discovery. More information: <https://d

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandconsul kvvaluestoredistributedkeycliwith

Problem

How to use the consul kv command: Distributed key-value store with health checking and service discovery. More information: <https://developer.hashicorp.com/consul/docs/automate/kv/store>.

Solution

consul kv — Distributed key-value store with health checking and service discovery. More information: <https://developer.hashicorp.com/consul/docs/automate/kv/store>.

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}}

Code Snippets

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}}

Context

tldr-pages: common/consul kv

Revisions (0)

No revisions yet.