Install
Install the CLI first. Add the VifuHub SDK only when your game code needs VifuHub APIs.
CLI
bash
curl -fsSL https://vifu.ai/cli | bash
vf --helpAgent skills are installed separately; see VifuHub CLI Skill.
Project-local CLI install:
bash
npm install --save-dev @vifu/vf
npx vf --helpCreate A Project
bash
npm create @vifu/vifu my-game -- --template vanilla --no-interactive
cd my-game
vf deploy --yesnpm create @vifu/vifu is the supported project initializer. Project creation is separate from the vf command.
For an existing browser game, run:
bash
cd path/to/your-game
vf deploy --yesvf deploy also starts setup automatically when it is missing. Use vf deploy --yes in CI to accept detected defaults.
VifuHub 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
vf loginThen deploy from a game directory:
bash
vf deployNext Steps
- Quickstart builds and deploys a minimal game.
- VifuHub CLI Skill shows how to add the workflow guide to coding agents.
- VifuHub SDK explains the browser API.
- Deploy Policy explains what the runtime artifact validator accepts.
