hashicorp/consul
Apps
The repo ships one binary, consul, that serves three runtime roles:
| Role | How it's invoked | Where the code lives |
|---|---|---|
| Operator CLI | consul <subcommand> ... |
command/ |
| Agent (client) | consul agent ... |
agent/ |
| Server | consul agent -server ... |
agent/consul/ |
The agent and server share most code; "server" is just the agent with a few extra goroutines (Raft, leader loops, RPC server).
This section covers the CLI as a deployable unit. The agent and server runtimes are documented as systems because they are deeply layered and don't fit a single page:
- Agent runtime — local services, checks, HTTP/DNS, proxy config
- Server and Raft — consensus, FSM, state store, RPC endpoints
Sub-pages
- CLI — every operator command, where it lives, and how it's wired
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.