github.com/outbrain/consul@v1.4.5/website/source/docs/commands/catalog/datacenters.html.md.erb (about) 1 --- 2 layout: "docs" 3 page_title: "Commands: Catalog List Datacenters" 4 sidebar_current: "docs-commands-catalog-datacenters" 5 --- 6 7 # Consul Catalog List Datacenters 8 9 Command: `consul catalog datacenters` 10 11 The `catalog datacenters` command prints all known datacenters. 12 13 ## Examples 14 15 List all datacenters: 16 17 ``` 18 $ consul catalog datacenters 19 dc1 20 dc2 21 dc3 22 ``` 23 24 ## Usage 25 26 Usage: `consul catalog datacenters [options]` 27 28 #### API Options 29 30 <%= partial "docs/commands/http_api_options_client" %> 31 <%= partial "docs/commands/http_api_options_server" %>