Cli Anything Godot

by hkuds34f519533bc1No license51K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 2 weeks ago

Agent-native CLI for Godot project management, scenes, exports, and script execution.

Instructions onlySoftware Development
AI-generated overview

Command-line interface for managing Godot game projects, scenes, exports and GDScript execution.

What it does
Provides an agent-oriented CLI for the Godot game engine. It creates and inspects projects, lists scenes, scripts and resources, creates scenes and adds child nodes, runs or validates GDScript, and builds export presets. It also reports engine status and version, supports JSON output, and offers an interactive session mode.
When to use it
Use it when an agent needs to work with a Godot project from the command line, such as inspecting project structure, editing scenes, running GDScript, or producing game builds. It suits automation of Godot project tasks rather than general coding or design work.
Requirements
Requires Godot 4.x on PATH, or the GODOT_BIN environment variable set to the binary. The CLI itself is installed via pip from a Git repository, so Python and network access are needed for installation. It ships instructions only, with no bundled scripts.

Godot Engine CLI

Agent-native CLI for the Godot game engine. Manage projects, scenes, exports, and GDScript execution from the command line.

Installation

bash
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=godot/agent-harness

Requirements

  • Godot 4.x on PATH (or set GODOT_BIN env var)

Commands

Project Management

bash
# Create a new Godot projectcli-anything-godot project create <path> [--name "My Game"]
# Get project info (name, features, main scene)cli-anything-godot --json -p <project> project info
# List all scenescli-anything-godot --json -p <project> project scenes
# List all scriptscli-anything-godot --json -p <project> project scripts
# List all resourcescli-anything-godot --json -p <project> project resources
# Re-import project resourcescli-anything-godot -p <project> project reimport

Scene Operations

bash
# Create a new scene with root node typecli-anything-godot -p <project> scene create scenes/Level1.tscn --root-type Node3D
# Read scene structure (nodes, resources, connections)cli-anything-godot --json -p <project> scene read scenes/Level1.tscn
# Add a child node to a scenecli-anything-godot -p <project> scene add-node scenes/Level1.tscn --name Player --type CharacterBody3D --parent .

GDScript Execution

bash
# Run a GDScript file (must extend SceneTree)cli-anything-godot -p <project> script run tools/build_navmesh.gd
# Run inline GDScript codecli-anything-godot -p <project> script inline 'print(ProjectSettings.get_setting("application/config/name"))'
# Validate GDScript syntaxcli-anything-godot -p <project> script validate scripts/player.gd

Export

bash
# List configured export presetscli-anything-godot --json -p <project> export presets
# Export all presetscli-anything-godot -p <project> export build
# Export a specific presetcli-anything-godot -p <project> export build --preset "Windows Desktop" --output build/game.exe

Engine

bash
# Check Godot availability and binary pathcli-anything-godot --json engine status
# Get engine versioncli-anything-godot engine version

JSON Mode

Add --json flag to any command for structured JSON output suitable for agent consumption:

bash
cli-anything-godot --json -p ./my-game project info

Interactive REPL

bash
cli-anything-godot -p ./my-game session

Source and attribution

Source:hkuds/cli-anythinginskills/cli-anything-godotat commit34f5195

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal