godot
Launch Godot.
fgvm godot or fgvm g [-i|--interactive] [-a|--attached] [-P|--project] [--query <string>] [--args <string>] runs the appropriate Godot version, or resolves the optional query against installed versions and launches that match. With the --interactive or -i flag, it will prompt the user to launch an installed version, even if a query is supplied. When run in a project directory with a .fgvm-version
file, it will use that project-specific version. If no .fgvm-version file exists, it will use the global default version. The command will automatically detect and launch the project if a
project.godot file is found.
-
Once a version is installed, it will launch the editor with the project directly from the terminal.
-
Use
--queryto launch a specific installed version, such asfgvm godot --query "4.6 mono"or the exact installed versionfgvm godot --query "4.6.2-stable-standard". -
Optionally, pass in arguments to the Godot executable directly using
--argsfollowed by a separate value, such asfgvm godot --query "4.6 mono" --args "--headless"orfgvm godot --args "--version". Multiple arguments should be passed as a quoted string, such as--args "--headless -v". Do not use--args="..."; that form is rejected by the CLI parser. -
Use
--projector-Pwith explicit arguments to add the detected project path, such asfgvm godot -P --args "--dump-extension-api --quit". -
Use the
--attachedor-aflag to force Godot connected to the terminal for output; by default, Godot runs independently in detached mode and remains open after fgvm or the terminal exits. Using an argument detection system, certain arguments (like--version,--help,--headless) automatically trigger this mode since they would otherwise be useless without printing to standard out. -
The command will only read existing
.fgvm-versionfiles for version selection, and does not create or modify version files. Usefgvm localto manage.fgvm-versionfiles.