fgvm export [-o|--output <path>] [-a|--archive] [-j|--json] [--manifest <path>] [<...strings>] prepares the matching editor and export templates, imports the project once, and exports every named preset in export_presets.cfg in declaration order.

  • Without --output, each preset's configured export_path is honored. A preset with a blank path receives an isolated fallback beneath dist/<preset>/. Platforms unknown to fgvm remain usable when they declare an explicit path; Godot is responsible for validating the platform and its SDK requirements.
  • A directory reached through a configured export_path belongs to the project, so fgvm writes this run's files into it and overwrites only the files it produces. Anything else is left alone, including output from an earlier export that the current run no longer produces. Export beneath dist/ or --output when a run must leave nothing stale behind. A macOS .app bundle is the export itself rather than a directory shared with it, so it is still replaced whole.
  • --output <path> gives every preset an isolated directory beneath that root and atomically replaces those directories after successful exports, preventing stale files from an earlier run. Because fgvm must choose a valid file name, this mode supports Godot's built-in Windows Desktop, Linux/Linux/X11, macOS, Web, Android, and iOS platform names.
  • --archive uses Godot's native --export-pack mode to produce one data-only ZIP pack per preset. It does not create a playable release archive; normal exports continue to use --export-release, and downstream delivery tools may package those playable outputs separately.
  • Every successful run writes a small versioned handoff manifest to .fgvm-export.json; --manifest <path> changes that location. It contains a unique run ID, the resolved Godot version, and each preset's export mode, final path, and kind. --json or -j also writes the same document to standard output and sends human-readable progress and errors to standard error, making it safe for scripts.
  • Options must appear before the optional version query, for example fgvm export --archive --manifest artifacts.json 4.6 mono.