Create and build Godot games using command-line only, without the Godot Editor GUI. Includes CLI documentation, export automation, script-first workflows, and headless development.
This skill helps you create Godot games using command-line only, without the Godot Editor GUI.
Before using this skill, the documentation must be bootstrapped.
If the docs/ folder is empty or doesn't exist:
Ask Claude to help bootstrap this skill, and Claude will run the bootstrap script for you:
Run these commands in your terminal:
cd ~/.claude/skills/godot
./bootstrap.sh
Once bootstrapped, see docs/MENU.md for CLI-relevant topics navigation.
Activate this skill when you need to:
docs/cli/commands.md for all Godot CLI commands and flagsdocs/export/ for platform-specific export guidesdocs/scripting/ for GDScript and programmatic workflowsdocs/classes/ for full class documentation# Initialize a new project
godot --headless --editor --path /path/to/project
# Run a game
godot --path /path/to/project
# Export a project
godot --headless --export "Windows Desktop" output/game.exe
# Run a script
godot --headless --script main.gd
.tscn files are text-based - edit them directly.tres files are also text - create them programmaticallyproject.godot directly for configuration--reload-scripts flag for live updates.
├── bootstrap.sh # Download and prepare docs
├── docs/ # CLI-curated documentation
│ ├── MENU.md # Documentation navigation
│ ├── cli/ # Command line essentials
│ ├── scripting/ # GDScript and programming
│ ├── export/ # Export guides per platform
│ └── classes/ # Full API reference
└── SKILL.md # This file
Launch the Godot editor and run a project from the project directory:
godot .
Useful for automated testing and CI/CD:
godot --headless --quit-after 10
Runs without GUI, loads project, checks for errors, and exits automatically after N seconds.
Run a specific test script:
godot --headless --script test.gd
The standard godot . editor mode does NOT auto-reload code changes. Use headless mode or restart the editor after code modifications to see changes take effect.
Godot logs are stored in a platform-specific user data directory:
Linux:
~/.local/share/godot/app_userdata/<project_name>/logs/godot.log
macOS:
~/Library/Application Support/Godot/app_userdata/<project_name>/logs/godot.log
Windows:
%APPDATA%\Godot\app_userdata\<project_name>\logs\godot.log
The most recent log file will be named godot.log or have a timestamp. This is essential for debugging runtime issues.
CRITICAL: After modifying any code, you MUST:
This ensures code changes are tested immediately and issues are caught early.