Skip to content

mooncake fleet discover

List candidate peers from peers.toml and ~/.ssh/config

Description

Aggregate fleet candidates from local sources without modifying state. Useful as a smoke check before mooncake fleet bootstrap or to confirm which boxes are visible to the controller right now. Each row reports the source(s) that surfaced it and (for peers.toml entries) the result of a /v1/version probe.

Flags

Flag Type Default Description
--peers-file string - Override the peers.toml path (default ~/.config/mooncake/peers.toml)
--ssh-config string - Override the ssh_config path (default ~/.ssh/config). Use '-' to skip the SSH source entirely.
--no-probe bool false Skip the /v1/version round-trip for peers.toml entries (offline mode)
--probe-timeout duration 2s Per-peer agentd probe timeout
--no-mdns bool false Skip the mDNS browse for _mooncake._tcp.local. Useful on captive networks where multicast is unreliable, or when you want a pure peers.toml + ssh_config list.
--mdns-timeout duration 3s mDNS browse wall-clock timeout. Responses arriving after the timeout are dropped.
--json bool false Emit candidates as a JSON array (one object per candidate) instead of the text table