Compile an export template for the specified Godot platform PLATFORM
.
gdbuild template [OPTIONS] <PLATFORM>
-
--dry-run
— log the build command without running it -
--force
— build the export template even if it was cached in the store -
--print-hash
— log the unique hash of the export template (skips compilation) -
-c
,--config <PATH>
— use thegdbuild
configuration file found atPATH
- Default value:
<PROJECT>/gdbuild.toml
(gdbuild.toml
in project directory)
- Default value:
-
-p
,--project <PATH>
— use the Godot project found atPATH
- Default value:
$PWD
(current working directory)
- Default value:
-
-o
,--out <PATH>
— write generated artifacts toPATH
- Default value:
$PWD
(current working directory)
- Default value:
-
--release
— use a release export template (cannot be used with--release_debug
or--debug
) -
--release_debug
— use a release export template with debug symbols (cannot be used with--release
or--debug
) -
--debug
— use a debug export template (cannot be used with--release
or--release_debug
)
<PLATFORM>
— build for the specified Godot platformPLATFORM
- Default value:
runtime.GOOS
(host platform)
- Default value:
Compile any required export template(s) and then export the specified TARGET
.
gdbuild target [OPTIONS] <TARGET>
-
--dry-run
— log the build command without running it -
--force
- export the target even if it was cached in the store (does not rebuild the export template) -
--print-hash
— log the unique hash of the game binary (skips exporting) -
-c
,--config <PATH>
— use thegdbuild
configuration file found atPATH
- Default value:
<PROJECT>/gdbuild.toml
(gdbuild.toml
in project directory)
- Default value:
-
-p
,--project <PATH>
— use the Godot project found atPATH
- Default value:
$PWD
(current working directory)
- Default value:
-
-o
,--out <PATH>
— write generated artifacts toPATH
- Default value:
$PWD
(current working directory)
- Default value:
-
--template-archive <PATH>
- extract the template from the archive found atPATH
(skips template build) -
-f
,--feature <FEATURE>
— enable the provided feature tagFEATURE
(can be specified more than once) -
-p
,--platform <PLATFORM>
— build for the specified Godot platformPLATFORM
- Default value:
runtime.GOOS
(host platform)
- Default value:
-
--release
— use a release export template (cannot be used with--release_debug
or--debug
) -
--release_debug
— use a release export template with debug symbols (cannot be used with--release
or--debug
) -
--debug
— use a debug export template (cannot be used with--release
or--release_debug
)
<TARGET>
— the name of a target specified in the GDBuild manifest (must be exact).- Example values (assuming they are present in GDBuild manifest):
client
(define undertarget.client
heading)dlc
(define undertarget.dlc
heading; no export template required)
- Example values (assuming they are present in GDBuild manifest):
Initialize a Godot project with a GDBuild manifest.
gdbuild init [OPTIONS]
-p
,--project <PATH>
— use the Godot project found atPATH
- Default value:
$PWD
(current working directory)
- Default value: