Install
Install the CLI first. Add the SDK only when your game code needs Vifu APIs.
CLI
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:
npm install -g @vifu/cli@alpha
vifu --helpProject-local CLI install:
npm install --save-dev @vifu/cli@alpha
npx vifu --helpCreate A Project
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:
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.
SDK
npm
Use npm when your game has a bundler or build step:
npm install @vifu/sdk@alphaimport { createVifuSDK } from "@vifu/sdk";
const vifu = createVifuSDK();CDN
Load the browser build from jsDelivr. Deployed games should use an exact SDK version:
<script src="https://cdn.jsdelivr.net/npm/@vifu/[email protected]/dist/browser/vifu-sdk.js"></script>
<script>
const vifu = window.vifu;
</script>Sign In For Deploy
Create an account at vifu.ai, then run:
vifu loginThen deploy from a game directory:
vifu deployNext Steps
- Quickstart builds and deploys a minimal game.
- Vifu Agent Skill shows how to add the workflow guide to coding agents.
- Vifu SDK explains the browser API.
- Deploy Policy explains what the runtime artifact validator accepts.