Skip to content

mooncake fleet apply

Apply a plan to one or more fleet peers

Description

Sync the plan's directory to each selected peer, submit a run via agentd, and stream [host]-prefixed log lines back. Peers are processed in parallel; output is line-atomic per peer.

Flags

Flag Type Default Description
--peer []string - Select peers: repeat to UNION. Each value is a name (main_pc), key=value filter (tag=production), or @k=v,k2=v2 AND-group. Default: every peer in peers.toml (or the machine name when invoked as fleet apply <machine>).
--peers-file string - Override the peers.toml path
--max-sync-size int64 104857600 Plan-dir cumulative size cap in bytes (default 100 MiB)
--plan-dir string - Root directory to sync to each peer (default: directory of the plan file). Use this when the plan imports siblings via ../ — point at the repo root.
--vars-file []string - Vars file to load (relative to plan-dir or absolute); may be repeated
--step-filter []string - Filter steps to run on each peer by key=value (v1: tag=); forwarded to daemon. Multiple values OR together. Example: --step-filter tag=deploy
--parallel int 0 Maximum peers in flight at once (0 = unbounded, default)
--no-color bool false Disable ANSI colors in the [host] prefix (also honors NO_COLOR env)