Skip to content

mooncake fleet shutdown

Power off one or more fleet peers via agentd

Description

Sends POST /v1/self/shutdown to each selected peer. The daemon refuses with 409 runs_in_flight when an active run is in progress; pass --force to override. Right before each shutdown, the peer's MAC is read and stored in peers.toml so fleet up can wake it later (skip with --no-mac-collect).

Flags

Flag Type Default Description
--peer []string - Select peers (in addition to positional args): repeat for UNION. Each value is a name, key=value filter, or @k=v,k2=v2 AND-group.
--peers-file string - Override the peers.toml path
--force bool false Tell the daemon to shut down even if a run is in flight
--no-mac-collect bool false Skip the pre-shutdown MAC capture (peers.toml is left unchanged)