5385e31fc5
* Add some config entry docs * Update website/source/docs/agent/config_entries.html.md Co-Authored-By: mkeeler <mkeeler@users.noreply.github.com> * Update website/source/docs/agent/config_entries.html.md Co-Authored-By: mkeeler <mkeeler@users.noreply.github.com> * Get rid of double negative * Some incremental updates * Update the config list docs to not point to service-default related things. * A few more doc updates to get rid of some service-defaults specific linking info in the cli docs * In progress update * Update website/source/docs/agent/config_entries.html.md Co-Authored-By: mkeeler <mkeeler@users.noreply.github.com> * Reword bootstrap section * Update example proxy-defaults config * Finish up the examples section for managing config entries with the CLI * Update website/source/docs/agent/config_entries.html.md Co-Authored-By: mkeeler <mkeeler@users.noreply.github.com> * Use $ for shell command start * Make it very clear that the normal way to manage things is via the API/CLI * Update website/source/docs/agent/options.html.md Co-Authored-By: mkeeler <mkeeler@users.noreply.github.com>
42 lines
894 B
Plaintext
42 lines
894 B
Plaintext
---
|
|
layout: "docs"
|
|
page_title: "Commands: Config Read"
|
|
sidebar_current: "docs-commands-config-read"
|
|
---
|
|
|
|
# Consul Config Read
|
|
|
|
Command: `consul config read`
|
|
|
|
The `config read` command reads the config entry specified by the given
|
|
kind and name and outputs its JSON representation. See the
|
|
[configuration entries docs](/docs/agent/config_entries.html) for more
|
|
details about configuration entries.
|
|
|
|
## Usage
|
|
|
|
Usage: `consul config read [options]`
|
|
|
|
#### API Options
|
|
|
|
<%= partial "docs/commands/http_api_options_client" %>
|
|
|
|
#### Config Read Options
|
|
|
|
* `-kind` - Specifies the kind of the config entry to read.
|
|
|
|
* `-name` - Specifies the name of the config entry to read.
|
|
|
|
## Examples
|
|
|
|
$ consul config read -kind service-defaults -name web
|
|
{
|
|
"Kind": "service-defaults",
|
|
"Name": "web",
|
|
"Protocol": "http",
|
|
"CreateIndex": 13,
|
|
"ModifyIndex": 13
|
|
}
|
|
|
|
|