Skip to content

mooncake plan

Generate and display execution plan (dry-run)

Flags

Flag Type Default Description
--config / -c string - Path to configuration file (default: ./mooncake.yml or ./mooncake/main.yml)
--vars / -v []string - Path to a variables file. Repeat to layer multiple files; later wins on key collision.
--tags / -t string - Filter steps by tags (comma-separated)
--skip-tags string - Exclude steps whose tags appear in this list (comma-separated)
--format / -f string text Output format: text, json, or yaml
--show-origins bool false Show origin file:line:col for each step
--no-inspect bool false Skip the per-step state inspection pass (Spec 16). With this flag, plan output reflects only static YAML expansion — no would-change predictions.
--diff / -d bool false Show unified diff for file steps that would change content
--output / -o string - Save plan to file (format determined by extension: .json, .yaml, .yml)
--sudo-pass-file string - Read sudo password from file (must have 0600 permissions)
--sudo-pass / -s string - Sudo password (requires --insecure-sudo-pass)
--ask-become-pass / -K bool false Prompt for sudo password interactively
--insecure-sudo-pass bool false Allow --sudo-pass flag (WARNING: visible in shell history)
--allow-undefined bool false Downgrade unresolved {{ var }} references from a fatal error to a warning. By default, plan errors on any root identifier not in initial_vars and not produced by a prior step's as: register.