Consul Catalog
Command: consul catalog
The catalog
command is used to interact with Consul's catalog via the command
line. It exposes top-level commands for reading and filtering data from the
registry.
The catalog is also accessible via the HTTP API.
Basic Examples
List all datacenters:
List all nodes:
List all nodes which provide a particular service:
List all services:
List all services on a node:
For more examples, ask for subcommand help or view the subcommand documentation by clicking on one of the links in the sidebar.
Usage
Usage: consul catalog <subcommand>
For the exact documentation for your Consul version, run consul catalog -h
to
view the complete list of subcommands.
For more information, examples, and usage about a subcommand, click on the name of the subcommand in the sidebar or one of the links below: