Skip to content

Install via npm

The simplest way to use vanya is with npx — no installation required:

Terminal window
npx @vanya-lang/vanya check my_test.vanya
npx @vanya-lang/vanya build my_test.vanya -o out/
npx @vanya-lang/vanya fmt my_test.vanya

This downloads and caches the binary automatically. Works everywhere without permission issues.

Project-local install

For project-local installs, add to your package.json:

Terminal window
npm install --save-dev @vanya-lang/vanya

Then run via npx vanya or add scripts to package.json:

{
"scripts": {
"test:check": "vanya check tests/*.vanya",
"test:build": "vanya build tests/*.vanya -o out/"
}
}

Global install

Terminal window
npm install -g @vanya-lang/vanya

The npm package bundles the native binary for your platform.

Verify

Terminal window
vanya --version

The current version is 0.3.4.

Next steps

Create your first test.