Skip to content

Toolchain and packages

The zov executable contains both the compiler and the package manager. Source builds and installs also provide a zovc compatibility command that invokes the same binary.

Task Command
Compile a source file zov file.zov -o program
Print the generated C zov --emit-c file.zov
Type/borrow-check only zov --check file.zov
Check a local project zov check
Build / run a local project zov build · zov run
Run the embedded tests zov --test file.zov
Explain a diagnostic zov explain E0601
List every diagnostic code zov diagnostics
Task Command
Fetch remote dependencies zov pkg fetch
Build with resolved dependencies zov pkg build
Add a path dependency zov pkg add NAME --path PATH
Add a Git dependency zov pkg add NAME --git URL
Show the dependency graph zov pkg tree
Refresh the lockfile zov pkg lock

Dependency kinds behave differently:

  • path — resolved locally, ready immediately
  • git / url — must be fetched once (zov pkg fetch) before the offline compiler can build the project

The project manifest is zov.toml; its zovc field pins the minimum compiler version and is enforced on every build.

zov pkg exposes: init, install, fetch, add, check, build, run, tree, lock, toolchain, and version. Run zov pkg --help for per-command options.

One-shot compilation, no manifest required:

Terminal window
zov main.zov -o app
./app

zov-lsp and the editor extensions (VS Code, Zed, IntelliJ, Neovim) are installed separately from the compiler. The historical v0.9.0 archive bundled the language server; current source builds and rolling nightlies use the split repositories. See Editor integrations for per-editor release tags and the combined nightly builds.