mooncake fleet init¶
Interactive setup — discover peers and add them to peers.toml
Description¶
Aggregates discovery sources (mDNS, ~/.ssh/config, existing peers.toml) and prompts the operator to add each new candidate to peers.toml. The hard step — moving each peer's bearer token to the controller — is a manual paste in v1; --from-bootstrap / --ssh-fetch are spec-47 follow-ups.
Flags¶
| Flag | Type | Default | Description |
|---|---|---|---|
--peers-file |
string | - | Override the peers.toml path |
--no-mdns |
bool | false | Skip the mDNS browse source |
--no-ssh-config |
bool | false | Skip the ~/.ssh/config source |
--mdns-timeout |
duration | 3s |
Cap mDNS browse wall-clock |
--dry-run |
bool | false | Print the candidate list + planned actions without writing peers.toml and without prompting. Useful for seeing what fleet init would do. |
--accept-all |
bool | false | Skip prompts. Every agentd candidate that already has a token (e.g. already in peers.toml) is left alone. Candidates that need a token error out — pair them via fleet bootstrap instead. |