|
|
|
@ -12,6 +12,12 @@ store at the given key name. If no key exists with that name, an error is
|
|
|
|
|
returned. If a key exists with that name but has no data, nothing is returned. |
|
|
|
|
A key name or prefix is required. |
|
|
|
|
|
|
|
|
|
-> When reading many entries under a given prefix, it may be worth considering |
|
|
|
|
[`kv export`](/commands/kv/export) instead, the output of which can be used |
|
|
|
|
with [`kv import`](/commands/kv/import) to move entire trees between Consul |
|
|
|
|
clusters. Alternatively, the [transaction API](/api-docs/txn) provides |
|
|
|
|
support for performing up to 64 KV operations atomically. |
|
|
|
|
|
|
|
|
|
## Usage |
|
|
|
|
|
|
|
|
|
Usage: `consul kv get [options] [KEY_OR_PREFIX]` |
|
|
|
|