@vue-godot/cli
v0.0.2
Published
CLI tool for vue-godot projects — generates types, scaffolds projects, and more
Readme
@vue-godot/cli
CLI tool for vue-godot projects — scaffolds new projects, integrates Vue into existing Godot projects, and generates type declarations.
Installation
npm install -D @vue-godot/cliOr run directly with npx:
npx vue-godot <command> [options]Commands
create
Create a new Godot project with vue-godot set up and ready to go.
vue-godot create [name] [options]| Argument | Description |
| -------- | ----------------------------------------------------- |
| name | Project name (used as dir name). Prompted if omitted. |
| Option | Description |
| ------ | ------------------------------------------- |
| -f | Force overwrite if directory already exists |
Example:
npx vue-godot create my-game
cd my-game
npm install
npm run buildintegrate
Scaffold a vue/ folder with Vite + Vue configuration for an existing Godot project.
vue-godot integrate [dir] [options]| Argument | Description |
| -------- | ---------------------------------- |
| dir | Target directory (defaults to .) |
| Option | Description |
| ------ | ---------------------------------------- |
| -f | Force overwrite if vue/ already exists |
This command:
- Copies a Vue + Vite template into
<dir>/vue/ - Creates or updates
package.jsonwith the necessary scripts and dependencies - Resolves
node_modulespaths for the generatedtsconfig.json
Example:
cd my-existing-godot-project
npx vue-godot integrate
npm install
npm run gen:types
npm run devgen-types
Generate Vue GlobalComponents type augmentation from GodotJS typings. This gives Volar full autocomplete and type checking for Godot node tags (e.g. <Button>, <Label>) in .vue templates.
vue-godot gen-types [options]| Option | Default | Description |
| ------------ | ----------------------------------------- | -------------------------------------------------- |
| --typings | ./typings | Directory containing godot*.gen.d.ts files |
| --out | <typings>/godot.vue-components.gen.d.ts | Output file path for the generated .d.ts |
| --ancestor | Control | Base class — only descendants are included |
| --vue-src | ./vue/src | Vue source dir — generates an env.d.ts shim here |
Example:
cd apps/v-model
npx vue-godot gen-typesRe-run whenever Godot typings are regenerated (e.g. after a Godot version upgrade).
Development (monorepo)
From the repository root:
npm install
npm run build # builds all packages via Turborepo
npx vue-godot # runs the locally-built CLILicense
MIT
