mirror of https://github.com/status-im/consul.git
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
---
|
|
layout: commands
|
|
page_title: 'Commands: Config List'
|
|
---
|
|
|
|
# Consul Config List
|
|
|
|
Command: `consul config list`
|
|
|
|
Corresponding HTTP API Endpoint: [\[GET\] /v1/config/:kind](/api-docs/config#list-configurations)
|
|
|
|
The `config list` command lists all given config entries of the given kind.
|
|
See the [configuration entries docs](/docs/agent/config-entries) for more
|
|
details about configuration entries.
|
|
|
|
The table below shows this command's [required ACLs](/api#authentication). Configuration of
|
|
[blocking queries](/api/features/blocking) and [agent caching](/api/features/caching)
|
|
are not supported from commands, but may be from the corresponding HTTP endpoint.
|
|
|
|
| ACL Required |
|
|
| -------------- |
|
|
| `service:read` |
|
|
|
|
## Usage
|
|
|
|
Usage: `consul config list [options]`
|
|
|
|
#### API Options
|
|
|
|
@include 'http_api_options_client.mdx'
|
|
|
|
#### Enterprise Options
|
|
|
|
@include 'http_api_namespace_options.mdx'
|
|
|
|
@include 'http_api_partition_options.mdx'
|
|
|
|
#### Config List Options
|
|
|
|
- `-kind` - Specifies the kind of the config entry to list.
|
|
|
|
## Examples
|
|
|
|
$ consul config list -kind service-defaults
|
|
billing
|
|
db
|
|
web
|