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 --query to launch a specific installed version, such as fgvm godot --query "4.6 mono" or the exact installed version fgvm godot --query "4.6.2-stable-standard".

  • Optionally, pass in arguments to the Godot executable directly using --args followed by a separate value, such as fgvm godot --query "4.6 mono" --args "--headless" or fgvm 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 --project or -P with explicit arguments to add the detected project path, such as fgvm godot -P --args "--dump-extension-api --quit".

  • Use the --attached or -a flag 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-version files for version selection, and does not create or modify version files. Use fgvm local to manage .fgvm-version files.