local
Prepare a project version.
fgvm local [<...strings>] prepares the Godot toolchain for the current project by creating or updating a .fgvm-version file in the current directory. If no .fgvm-version file
exists and no arguments are provided, it will automatically detect the project version from project.godot and install the most recent compatible version if not already installed.
-
Existing
.fgvm-versionfiles follow the exact-pin rules described in Version Queries and Project Pins. -
If a list of arguments are provided, it will find the best matching version based on the query (including runtime preferences like
monoorstandard) and install it if necessary. -
If
export_presets.cfgcontains at least one preset with a name, platform, and export path, it also installs the complete official export-template package matching the selected editor. Projects without configured export presets retain the version-only behavior. -
fgvm validates the preset metadata it uses before the editor or
.fgvm-versionis changed. An unreadable file or malformed relevant field stopslocalwith a configuration error containing the file and line when available; target-specific option values remain Godot's responsibility. -
If editor preparation succeeds but template installation fails or is cancelled,
localexits non-zero and explicitly reports that the selected editor and.fgvm-versionremain in place for a retry.
Examples
# Navigate to your project directory
cd my-godot-project
# Option 1: Auto-detect version from project.godot
fgvm local # Detects the version and prepares templates when export presets are configured
# Option 2: Explicitly set a version
fgvm local 4.3 mono # Creates .fgvm-version and prepares matching Mono templates when needed
Using project versions:
# In a project directory with .fgvm-version file
fgvm godot # Uses version from .fgvm-version
# Or use short form
fgvm g # Same as above
# In a project directory without .fgvm-version file
fgvm godot # Uses global default version
# In any directory
fgvm godot -i # Interactive selection from installed versions
fgvm g -i # Same as above
See Version Queries and Project Pins for the required pin format and migration from older pins.