Skip to content

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 --help

Agent skills are installed separately; see VifuHub CLI Skill.

Project-local CLI install:

bash
npm install --save-dev @vifu/vf
npx vf --help

Create A Project ​

bash
npm create @vifu/vifu my-game -- --template vanilla --no-interactive
cd my-game
vf deploy --yes

npm 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 --yes

vf 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@alpha
ts
import * as hub from "@vifu/hub";

Sign In For Deploy ​

Create an account at vifu.ai, then run:

bash
vf login

Then deploy from a game directory:

bash
vf deploy

Next Steps ​