Export / build
exportManage presets, verify templates, and build Godot executables for Windows, Linux, macOS, Web, and Android via headless runs.
Instructions
Ship the game: manage export presets (export_presets.cfg), check that export templates are installed, and build executables (Windows .exe, Linux, macOS .zip, Web .html, Android .apk) by running a headless Godot export. Typical flow: templates -> add_preset {platform} -> build {preset}.
Actions:
presets: {options?: bool} list export presets (name, platform, export_path, runnable) and whether templates are installed.
add_preset: {platform: windows|linux|macos|web|android|ios, name?=platform name, export_path?='build//.', options?: {'binary_format/embed_pck': true, 'application/product_name': ..., 'custom_template/release': path, ...}, runnable?=true, export_filter?: all_resources|scenes|resources|exclude, include_filter?, exclude_filter?, custom_features?, dedicated_server?} create a preset (or update the one with the same name). Unlisted options keep Godot's defaults.
remove_preset: {name} delete a preset.
templates: {} whether export templates for the running Godot version are installed (per platform), where they go, and the download URL.
build: {preset? (name or platform; optional if only one), path? (default: the preset's export_path, relative to the project), debug?=false, pack?: export only the .pck/.zip, timeout_s?=900} export the project with a separate headless Godot process (unsaved scenes are saved first; an output folder inside the project gets a .gdignore). Returns ok, output file + size, errors/warnings and a hint (e.g. missing templates).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Preset name. | |
| pack | No | build: only export the .pck/.zip data pack. | |
| path | No | build: output path overriding the preset's export_path. | |
| debug | No | build: debug export (uses debug templates, keeps console/debugging). | |
| action | Yes | What to do. See the tool description for each action's parameters. | |
| preset | No | Preset name (or platform) to build. | |
| options | No | Platform export options, e.g. {'binary_format/embed_pck': true}. | |
| platform | No | Target platform: windows, linux, macos, web, android, ios. | |
| runnable | No | Mark as the runnable preset for its platform (default true). | |
| timeout_s | No | build: timeout in seconds (default 900). | |
| export_path | No | Output file relative to the project, e.g. build/windows/game.exe. | |
| export_filter | No | all_resources (default), scenes, resources or exclude. | |
| exclude_filter | No | Files to exclude, e.g. 'test/*'. | |
| include_filter | No | Extra non-resource files to include, e.g. '*.json, data/*'. | |
| custom_features | No | Comma separated custom feature tags. | |
| dedicated_server | No | add_preset: export as a dedicated server (strips visuals). |