Skip to content

2dog new

Creates a new Godot project with 2dog hosts. Without host flags it asks which hosts to create; any host flag or -y runs unattended.

bash
2dog new [Name] [dir] [hosts] [options]
ArgumentMeaning
NameProject name; letters, digits, ., _ and - survive, an adjustment is announced
dirDirectory to create; defaults to the sanitized name

Hosts

Any host flag, repeatable. Unattended without one: desktop, browser and tests, minus the --no-<host> ones.

Options

OptionEffect
-n, --name <name>Project name; same as Name
-o, --output <dir>Directory; same as dir
--dry-runPrint the plan; change nothing
--forceOverwrite scaffolded files that exist; never deletes
--no-restoreSkip the final dotnet restore

Plus the global and output options.

Examples

bash
2dog new MyGame                            # interactive host choice
2dog new MyGame --desktop --tests          # unattended
2dog new "My Game" -o games/mine --no-web  # name adjusted to MyGame

The generated layout and the dotnet new 2dog template: Creating a New Project.