The godot shim and PATH
gdt run works without any setup. If you also want a plain godot command (for editor integrations, scripts or muscle
memory) that picks the right build for the project, install the shim.
gdt shim installgdt shim statusgdt shim install puts godot in gdt’s bin folder (gdt paths shows it) and tells you what to add to PATH. The
shim is gdt itself under another name (ADR 0009): a symbolic link on Linux and macOS, a
copy on Windows.
gdt changes PATH only when you ask:
gdt shim install --modify-pathgdt shim uninstall --modify-path- Windows: puts the folder first on the user
Pathin the registry, keeping the value’s type and every other entry exactly as written, after saving a backup ingdt’s config folder. Close Windows Terminal completely and open it again; terminals that are already open keep their oldPath. The systemPathis never touched. - Linux and macOS: adds a block marked
# >>> gdt >>>…# <<< gdt <<<to your shell profile that loads a small script adding the folder toPATH, asrustupdoes. Only that block is ever added or removed.
A godot earlier on PATH than the shim wins. gdt shim status shows whether the shim is installed and up to date,
whether its folder is on PATH, and which godot would actually run.
What the shim does
Section titled “What the shim does”- Passes every argument to Godot untouched, including
-v,-hand--version. - Chooses the build as
gdt rundoes, from--path,GDT_VERSION,gdt.toml,project.godotor the default. It never uses the network and never installs anything. - Prints nothing on success; its own errors go to stderr prefixed
gdt:, with exit code 4 when no build is selected or installed. - Returns Godot’s exit code unchanged.
godot --path ~/games/cozy --headless -s tools/check.gd # from any folderDetails: version management spec, ADR 0006.
Independent community project. Not affiliated with, endorsed by or sponsored by the Godot Foundation or the Godot Engine project. “Godot” is a trademark of the Godot Foundation; this site does not use the Godot logo.