Install
Install the CLI first. Add the Vifu Hub SDK only when your game code needs Vifu APIs.
CLI
bash
curl -fsSL https://vifu.dev/cli | bash
vifu --helpThe installer downloads the native Vifu binary for macOS, Linux, or Windows shells. Agent skills are installed separately; see Vifu Agent Skill. npm remains the fallback when native install is unavailable:
bash
npm install -g @vifu/cli@alpha
vifu --helpProject-local CLI install:
bash
npm install --save-dev @vifu/cli@alpha
npx vifu --helpCreate A Project
bash
npm create @vifu/vifu my-game -- --template vanilla --no-interactive
cd my-game
vifu deploy --yesnpm create @vifu/vifu is the supported project initializer. The CLI does not expose vifu create or vifu new as public commands.
For an existing browser game, run:
bash
cd path/to/your-game
vifu deploy --yesvifu deploy also starts setup automatically when it is missing. Use vifu deploy --yes in CI to accept detected defaults.
Vifu Hub SDK
npm
Use npm when your game has a bundler or build step:
bash
npm install @vifu/hub@alphats
import * as hub from "@vifu/hub";Sign In For Deploy
Create an account at vifu.ai, then run:
bash
vifu loginThen deploy from a game directory:
bash
vifu deployNext Steps
- Quickstart builds and deploys a minimal game.
- Vifu Agent Skill shows how to add the workflow guide to coding agents.
- Vifu Hub SDK explains the browser API.
- Deploy Policy explains what the runtime artifact validator accepts.