Setup For Deployment
vifu setup prepares an existing game project for Vifu deploy. You can run it explicitly, or let vifu deploy start the same setup flow when configuration is missing.
Run Setup
bash
cd path/to/your-game
vifu setupThe CLI detects the project and asks for:
- game name
- version
- HTML entry
- build command
- build output directory
- whether to enable Vifu AI, cloud save, or companion bridge
For CI or scripts, accept detected defaults without prompts:
bash
vifu deploy --yesUse strict mode when configuration must already exist:
bash
vifu deploy --no-setupCommon Project Shapes
Static HTML:
json
{
"main": { "url": "index.html", "engine": "vanilla" },
"build": { "output": "target/web" }
}Vite, Angular, Phaser, or other bundled apps:
json
{
"main": { "url": "index.html", "engine": "phaser" },
"build": {
"command": "npm run build",
"output": "dist"
}
}AI-native games should declare Vifu AI use:
json
{
"ai": {
"dialogue": { "role": "npc" },
"budget": { "mode": "demo", "turns": 8 },
"fallback": "deterministic"
}
}Next Step
After setup, deploy the project:
bash
vifu deploySee Deploy to Vifu for the full deploy flow.