mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
a9df6ac50b
- moved and renamed files/folders based on new structure - updated docs navigation based on new structure - moved CLI to top nav (created commands.jsx and commands-navigation.js) - updated and added redirects - updating to be consistent with standalone categories - changing "overview" link in top nav to lead to where intro was moved (docs/intro) - adding redirects for intro content - deleting old intro folders - format all data/navigation files - deleting old commands folder - reverting changes to glossary page - adjust intro navigation for removal of 'vs' paths - add helm page redirect - fix more redirects - add a missing redirect - fix broken anchor links and formatting mistakes - deleted duplicate section, added redirect, changed link - removed duplicate glossary page
44 lines
916 B
Plaintext
44 lines
916 B
Plaintext
---
|
|
layout: commands
|
|
page_title: 'Commands: Config Read'
|
|
sidebar_title: 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) for more
|
|
details about configuration entries.
|
|
|
|
## Usage
|
|
|
|
Usage: `consul config read [options]`
|
|
|
|
#### API Options
|
|
|
|
@include 'http_api_options_client.mdx'
|
|
|
|
#### Enterprise Options
|
|
|
|
@include 'http_api_namespace_options.mdx'
|
|
|
|
#### 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
|
|
}
|